svn commit: samba r23425 - in branches: SAMBA_3_0/source/nmbd SAMBA_3_0_25/source/nmbd SAMBA_3_0_26/source/nmbd

jra at samba.org jra at samba.org
Tue Jun 12 01:45:45 GMT 2007


Author: jra
Date: 2007-06-12 01:45:40 +0000 (Tue, 12 Jun 2007)
New Revision: 23425

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23425

Log:
Volker noticed this obvious fix for the wins server
code :-). Thanks Volker !
Jeremy.

Modified:
   branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c
   branches/SAMBA_3_0_25/source/nmbd/nmbd_winsserver.c
   branches/SAMBA_3_0_26/source/nmbd/nmbd_winsserver.c


Changeset:
Modified: branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c
===================================================================
--- branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c	2007-06-11 22:28:27 UTC (rev 23424)
+++ branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c	2007-06-12 01:45:40 UTC (rev 23425)
@@ -2140,7 +2140,7 @@
 
 		/* handle records, samba is the wins owner */
 		if (ip_equal(namerec->data.wins_ip, our_fake_ip)) {
-			switch (namerec->data.wins_flags | WINS_STATE_MASK) {
+			switch (namerec->data.wins_flags & WINS_STATE_MASK) {
 				case WINS_ACTIVE:
 					namerec->data.wins_flags&=~WINS_STATE_MASK;
 					namerec->data.wins_flags|=WINS_RELEASED;
@@ -2165,7 +2165,7 @@
 					goto done;
 			}
 		} else {
-			switch (namerec->data.wins_flags | WINS_STATE_MASK) {
+			switch (namerec->data.wins_flags & WINS_STATE_MASK) {
 				case WINS_ACTIVE:
 					/* that's not as MS says it should be */
 					namerec->data.wins_flags&=~WINS_STATE_MASK;

Modified: branches/SAMBA_3_0_25/source/nmbd/nmbd_winsserver.c
===================================================================
--- branches/SAMBA_3_0_25/source/nmbd/nmbd_winsserver.c	2007-06-11 22:28:27 UTC (rev 23424)
+++ branches/SAMBA_3_0_25/source/nmbd/nmbd_winsserver.c	2007-06-12 01:45:40 UTC (rev 23425)
@@ -2140,7 +2140,7 @@
 
 		/* handle records, samba is the wins owner */
 		if (ip_equal(namerec->data.wins_ip, our_fake_ip)) {
-			switch (namerec->data.wins_flags | WINS_STATE_MASK) {
+			switch (namerec->data.wins_flags & WINS_STATE_MASK) {
 				case WINS_ACTIVE:
 					namerec->data.wins_flags&=~WINS_STATE_MASK;
 					namerec->data.wins_flags|=WINS_RELEASED;
@@ -2165,7 +2165,7 @@
 					goto done;
 			}
 		} else {
-			switch (namerec->data.wins_flags | WINS_STATE_MASK) {
+			switch (namerec->data.wins_flags & WINS_STATE_MASK) {
 				case WINS_ACTIVE:
 					/* that's not as MS says it should be */
 					namerec->data.wins_flags&=~WINS_STATE_MASK;

Modified: branches/SAMBA_3_0_26/source/nmbd/nmbd_winsserver.c
===================================================================
--- branches/SAMBA_3_0_26/source/nmbd/nmbd_winsserver.c	2007-06-11 22:28:27 UTC (rev 23424)
+++ branches/SAMBA_3_0_26/source/nmbd/nmbd_winsserver.c	2007-06-12 01:45:40 UTC (rev 23425)
@@ -2140,7 +2140,7 @@
 
 		/* handle records, samba is the wins owner */
 		if (ip_equal(namerec->data.wins_ip, our_fake_ip)) {
-			switch (namerec->data.wins_flags | WINS_STATE_MASK) {
+			switch (namerec->data.wins_flags & WINS_STATE_MASK) {
 				case WINS_ACTIVE:
 					namerec->data.wins_flags&=~WINS_STATE_MASK;
 					namerec->data.wins_flags|=WINS_RELEASED;
@@ -2165,7 +2165,7 @@
 					goto done;
 			}
 		} else {
-			switch (namerec->data.wins_flags | WINS_STATE_MASK) {
+			switch (namerec->data.wins_flags & WINS_STATE_MASK) {
 				case WINS_ACTIVE:
 					/* that's not as MS says it should be */
 					namerec->data.wins_flags&=~WINS_STATE_MASK;



More information about the samba-cvs mailing list