diff options
author | Michael Adam <obnox@samba.org> | 2012-06-06 15:22:31 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-06-06 19:37:14 +0200 |
commit | ba1699463bee4d622e76f54c1a1c17858545c84f (patch) | |
tree | 9bb383e332c181f026939d0370e5389c385b56b3 /source3/smbd | |
parent | aa3a7de3687ac78ae1ed3fa395d8c4707a24b774 (diff) | |
download | samba-ba1699463bee4d622e76f54c1a1c17858545c84f.tar.gz samba-ba1699463bee4d622e76f54c1a1c17858545c84f.tar.bz2 samba-ba1699463bee4d622e76f54c1a1c17858545c84f.zip |
s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/connection.c | 2 | ||||
-rw-r--r-- | source3/smbd/msdfs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index 01eb9d79f7..846a173ad7 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -71,7 +71,7 @@ static int count_fn(struct db_record *rec, { struct count_stat *cs = (struct count_stat *)udp; - if (crec->cnum == -1) { + if (crec->cnum == TID_FIELD_INVALID) { return 0; } diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 9da8a8da75..6f182b4920 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -276,7 +276,7 @@ NTSTATUS create_conn_struct(TALLOC_CTX *ctx, } conn->params->service = snum; - conn->cnum = (unsigned)-1; + conn->cnum = TID_FIELD_INVALID; DLIST_ADD(conn->sconn->connections, conn); conn->sconn->num_connections++; |