registry4: Fix CID 1034911 Dereference before null check
commitf82daa054ad95c6b1ae5cfce1efb6dc461389bc9
authorVolker Lendecke <vl@samba.org>
Sun, 18 Aug 2013 19:34:35 +0000 (18 19:34 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 18 Aug 2013 23:08:15 +0000 (19 11:08 +1200)
tree69043e6c08188b790181f822ec93d4787ebe6772
parent817e0ae6875676c8d46b63539fe805ba215d2d6b
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