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:
parent
92b37b3ef0
commit
0281c5b764
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user