1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r17878: Fix possible null deref found by Stanford checker.

Jeremy.
This commit is contained in:
Jeremy Allison 2006-08-28 05:35:27 +00:00 committed by Gerald (Jerry) Carter
parent 397ab2b1ab
commit ae20201494

View File

@ -109,6 +109,10 @@ BOOL regsubkey_ctr_key_exists( REGSUBKEY_CTR *ctr, const char *keyname )
{
int i;
if (!ctr->subkeys) {
return False;
}
for ( i=0; i<ctr->num_subkeys; i++ ) {
if ( strequal( ctr->subkeys[i],keyname ) )
return True;