samdb: Fix CID 1034910 Dereference before null check
commit8c4e6f0cba164c91661a654e2ccc13c265a06953
authorVolker Lendecke <vl@samba.org>
Sun, 18 Aug 2013 19:37:56 +0000 (18 19:37 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 18 Aug 2013 23:08:19 +0000 (19 11:08 +1200)
treec9f0fb472b33b8dd67341940cbba26a236902246
parent35330aa2c8b255d74e94bc9dd742e621953c21f9
samdb: Fix CID 1034910 Dereference before null check

strncmp("tdb://", sam_name, 6) dereferences sam_name. Check for
NULL before that.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/schema_load.c