fix logic error in testparm with wins servers
authorGerald Carter <jerry@samba.org>
Mon, 30 Sep 2002 15:18:59 +0000 (15:18 +0000)
committerGerald Carter <jerry@samba.org>
Mon, 30 Sep 2002 15:18:59 +0000 (15:18 +0000)
(This used to be commit b9942092cf3d0a9fbf94b51b576836a86059551b)

source3/utils/testparm.c

index d48cecba47b4ebc2467bf6821b05f321f947584d..c81d6e72e48cb0531c3f9ac90321fc381e6fff52 100644 (file)
@@ -52,8 +52,8 @@ static int do_global_checks(void)
                ret = 1;
        }
 
-       if (lp_wins_support() && wins_srv_count()) {
-               printf("ERROR: both 'wins support = true' and 'wins server = <server>' \
+       if (lp_wins_support() && lp_wins_server_list()) {
+               printf("ERROR: both 'wins support = true' and 'wins server = <server list>' \
 cannot be set in the smb.conf file. nmbd will abort with this setting.\n");
                ret = 1;
        }