mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r16153: Fix possible NULL dereference found by Klocwork # 252
(This used to be commit 128260527b90d77ca3dfc900e012018ef00ba9e0)
This commit is contained in:
parent
780f121462
commit
ab710c9e25
@ -40,6 +40,10 @@ char *escape_ldap_string_alloc(const char *s)
|
||||
const char *sub;
|
||||
int i = 0;
|
||||
char *p = output;
|
||||
|
||||
if (output == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
while (*s)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user