fix for difference in strsep and strtok semantics
authorHerb Lewis <herb@samba.org>
Thu, 22 Aug 2002 10:33:21 +0000 (10:33 +0000)
committerHerb Lewis <herb@samba.org>
Thu, 22 Aug 2002 10:33:21 +0000 (10:33 +0000)
source/nmbd/nmbd_processlogon.c

index 49de2e4a50ede8f6fa9f7e0123ca4b441a94684b..b65cebe2035fbcf086a495b45c753d784456721e 100644 (file)
@@ -335,6 +335,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n",
        dc = domain;
        q1 = q;
        while ((component = strtok(dc, "."))) {
+         dc = NULL;
          size = push_ascii(&q[1], component, -1, 0);
          SCVAL(q, 0, size);
          q += (size + 1);