summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-10-03 13:28:44 +0000
committerAndrew Tridgell <tridge@samba.org>2002-10-03 13:28:44 +0000
commitc1346cdca9a4a5290b91428878bd4b2f122eb6b1 (patch)
tree710a546edda17eb80d03da3d2378980862311b80 /source3/nmbd
parent16bf7a8f073587a8c8517738b133a6dbd58d7e48 (diff)
downloadsamba-c1346cdca9a4a5290b91428878bd4b2f122eb6b1.tar.gz
samba-c1346cdca9a4a5290b91428878bd4b2f122eb6b1.tar.bz2
samba-c1346cdca9a4a5290b91428878bd4b2f122eb6b1.zip
fixed 3 bugs in the wins server code related to precedence of ! and &
in C please note that: if (! a & b) is not the same as: if (! (a & b)) (This used to be commit ec6a098c2edf6aa44f85b031459b737496080898)
Diffstat (limited to 'source3/nmbd')
-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 13554a9430..ee47cff049 100644
--- a/source3/nmbd/nmbd_winsserver.c
+++ b/source3/nmbd/nmbd_winsserver.c
@@ -1952,8 +1952,8 @@ void nmbd_wins_new_entry(int msg_type, pid_t src, void *buf, size_t len)
/* I'm giving up on multi homed. Too much complex to understand */
if (record->wins_flags&WINS_MHOMED) {
- if (! namerec->data.wins_flags&WINS_ACTIVE) {
- if ( !namerec->data.wins_flags&WINS_RELEASED && !namerec->data.wins_flags&WINS_NGROUP)
+ if (! (namerec->data.wins_flags&WINS_ACTIVE)) {
+ if ( !(namerec->data.wins_flags&WINS_RELEASED) && !(namerec->data.wins_flags&WINS_NGROUP))
overwrite=True;
}
else {