lib: Fix CID 1373623 Dereference after null check
authorVolker Lendecke <vl@samba.org>
Wed, 12 Oct 2016 10:35:12 +0000 (12:35 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 12 Oct 2016 18:54:08 +0000 (20:54 +0200)
commit6ec81ca3c196f3c4659a4e1c473759b393708d12
treec19055c8130a08064f8c5cbdf06136ec69659966
parent9afdd95ff5718fe5bddd54899b101ddfb117e91f
lib: Fix CID 1373623 Dereference after null check

We should not overload "p", this is used in the outer loop

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12276
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/substitute.c