1
0
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:
Volker Lendecke 2006-06-12 12:45:06 +00:00 committed by Gerald (Jerry) Carter
parent 780f121462
commit ab710c9e25

View File

@ -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)
{