Fixed wild pointer diff found by insure.
authorJeremy Allison <jra@samba.org>
Tue, 2 May 2000 23:56:24 +0000 (23:56 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 2 May 2000 23:56:24 +0000 (23:56 +0000)
Jeremy.
(This used to be commit 158d9cada8c12725981d495faf8ed9f5d4306e23)

source3/nmbd/nmbd_processlogon.c

index bb4b7547a6e017d3900d08513ccb506905d4b082..0da25a313db781efd46a005c2b98ec831d8aaf75 100644 (file)
@@ -159,7 +159,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) ));
       /* PDC and domain name */
       if (!short_request)  /* Make a full reply */
       {
-        q = ALIGN2(q, buf);
+        q = ALIGN2(q, outbuf);
 
         q += dos_PutUniCode(q, my_name, sizeof(pstring), True); /* PDC name */
         q += dos_PutUniCode(q, global_myworkgroup,sizeof(pstring), True); /* Domain name*/