Fix list of servers in 'smbclient -L' (debian bug #194553, patch by Heine Larsen)
authorJelmer Vernooij <jelmer@samba.org>
Mon, 26 May 2003 19:51:50 +0000 (19:51 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 26 May 2003 19:51:50 +0000 (19:51 +0000)
(This used to be commit c9c8eccdba820e82e1f987f9078d882668a8061b)

source3/libsmb/clirap.c

index f05a65762b2fbfb1eaff0551d6ab2fe8935953ad..9d4411797dd25d5cf485849df8d915802f86590d 100644 (file)
@@ -233,7 +233,7 @@ BOOL cli_NetServerEnum(struct cli_state *cli, char *workgroup, uint32 stype,
        SIVAL(p,0,stype);
        p += 4;
 
-       push_ascii(p, workgroup, sizeof(pstring)-PTR_DIFF(p,param)-1, STR_TERMINATE|STR_UPPER);
+       p += push_ascii(p, workgroup, sizeof(pstring)-PTR_DIFF(p,param)-1, STR_TERMINATE|STR_UPPER);
        
        if (cli_api(cli, 
                     param, PTR_DIFF(p,param), 8,        /* params, length, max */