summaryrefslogtreecommitdiffstats
path: root/source/lib/messages.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-11-17 03:15:18 +0000
committerAndrew Tridgell <tridge@samba.org>2000-11-17 03:15:18 +0000
commit3575ad10985a18f897e38179ca69fa9a49a7ea02 (patch)
treec83679fc198cb7fe3bd8afd93348e8d5d7470cac /source/lib/messages.c
parenteeab4e0290f9df84025e91c85d27b21e0c02781f (diff)
downloadsamba-3575ad10985a18f897e38179ca69fa9a49a7ea02.tar.gz
samba-3575ad10985a18f897e38179ca69fa9a49a7ea02.tar.xz
samba-3575ad10985a18f897e38179ca69fa9a49a7ea02.zip
fixed the problem with messages not getting through
the problem had nothing to do with being your own pid, it was instead a problem with IPC$ connections not being registered in the connections database and an incorrect test for -1 in the messaging code. These changes also mean that IPC$ shares now show up in smbstatus. That is probably a good thing.
Diffstat (limited to 'source/lib/messages.c')
-rw-r--r--source/lib/messages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/messages.c b/source/lib/messages.c
index 8f181f0982a..7a0343b2498 100644
--- a/source/lib/messages.c
+++ b/source/lib/messages.c
@@ -374,7 +374,7 @@ static int traverse_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_DATA dbuf, void
memcpy(&crec, dbuf.dptr, sizeof(crec));
- if (crec.cnum == -1) return 0;
+ if (crec.cnum != -1) return 0;
message_send_pid(crec.pid, msg_all.msg_type, msg_all.buf, msg_all.len, msg_all.duplicates);
return 0;
}