ldb: use strncmp instead of strcmp when comparing the val part
authorMatthieu Patou <mat@matws.net>
Thu, 13 Dec 2012 10:18:34 +0000 (02:18 -0800)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Jan 2013 21:03:13 +0000 (22:03 +0100)
commit207ee6f164f6b7385e81d6c598734506c12a2937
tree857903836d3d93a89e6b5c0080d7b45661c1db04
parentab9bba4c7662018ac8cbb2c46f7be777a81ba396
ldb: use strncmp instead of strcmp when comparing the val part

val part of a DN's component is DATA_BLOB and nothing insure that it
will be finished by a '\0'

Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/common/ldb_dn.c