summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-06-12 01:45:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:15 -0500
commit9ae6e51616cb37f4de0e45645fda8315278149be (patch)
treedac6755c63d5cfc563de8f37a4c567a898196a66
parent24e05d4df2d791ae8f36dcc092915f12b992c3d6 (diff)
downloadsamba-9ae6e51616cb37f4de0e45645fda8315278149be.tar.gz
samba-9ae6e51616cb37f4de0e45645fda8315278149be.tar.bz2
samba-9ae6e51616cb37f4de0e45645fda8315278149be.zip
r23425: Volker noticed this obvious fix for the wins server
code :-). Thanks Volker ! Jeremy. (This used to be commit e3f33a2a503ada232aa1165e2321822584a026bd)
-rw-r--r--source3/nmbd/nmbd_winsserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c
index 0f27351d2d..4338aeac93 100644
--- a/source3/nmbd/nmbd_winsserver.c
+++ b/source3/nmbd/nmbd_winsserver.c
@@ -2140,7 +2140,7 @@ static int wins_processing_traverse_fn(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA
/* 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 @@ static int wins_processing_traverse_fn(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA
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;