1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

Apply some NULL pointer paranoia to previous wins hook fix.

This commit is contained in:
Tim Potter -
parent 92b37b3ef0
commit 0281c5b764

View File

@ -122,8 +122,8 @@ static void wins_hook(const char *operation, struct name_record *namerec, int tt
/* Use the name without the nametype (and scope) appended */
namestr = nmb_namestr(&namerec->name);
p = strchr(namestr, '<');
*p = 0;
if ((p = strchr(namestr, '<')))
*p = 0;
p = command;
p += slprintf(p, sizeof(command)-1, "%s %s %s %02x %d",