summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nmbd/nmbd_winsserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c
index 804a5aad57..3694072420 100644
--- a/source3/nmbd/nmbd_winsserver.c
+++ b/source3/nmbd/nmbd_winsserver.c
@@ -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",