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:
parent
397ab2b1ab
commit
ae20201494
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user