registry4: Fix CID 1034911 Dereference before null check
authorVolker Lendecke <vl@samba.org>
Sun, 18 Aug 2013 19:34:35 +0000 (19:34 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 18 Aug 2013 23:15:20 +0000 (11:15 +1200)
commit2055ce1dbe94a7f02497e72652a58736ff1cf2e0
treed6d676b6583d75c959d3fca197f8ab4707ce4b47
parentcc983c9a6a92f3d127ec6461b15aed3fa90e6d30
registry4: Fix CID 1034911 Dereference before null check

curbegin is always != NULL here (curend + 1) and is dereferenced by
strchr.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/lib/registry/local.c