fixed a namequery bug caused by my recent string length patches
authorAndrew Tridgell <tridge@samba.org>
Fri, 19 Apr 2002 00:16:18 +0000 (00:16 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 19 Apr 2002 00:16:18 +0000 (00:16 +0000)
(This used to be commit b2329039d255928faf53474ee7ab06b6353b9fbe)

source3/libsmb/namequery.c

index 7928d44652574361e58c6fe03b4de133d1f95534..c578df66217f2dd4acd4e9a853c4a031385b8af3 100644 (file)
@@ -191,7 +191,7 @@ BOOL name_status_find(const char *q_name, int q_type, int type, struct in_addr t
        if (i == count)
                goto done;
 
-       pull_ascii(name, status[i].name, 15, 0, STR_TERMINATE);
+       pull_ascii(name, status[i].name, 15, -1, STR_TERMINATE);
        result = True;
 
  done: