summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-07-01 15:39:41 -0700
committerJeremy Allison <jra@samba.org>2008-07-01 15:39:41 -0700
commit4a09c5a09f791738453947f07abe8d0f100fe53d (patch)
tree5c7efcdaa334a1b0d3f0b53f3719e90bf2f14b26 /source3/libsmb
parent4a8b39974bd4854a743b8fbf376c2923ee5dab3c (diff)
downloadsamba-4a09c5a09f791738453947f07abe8d0f100fe53d.tar.gz
samba-4a09c5a09f791738453947f07abe8d0f100fe53d.tar.bz2
samba-4a09c5a09f791738453947f07abe8d0f100fe53d.zip
Two more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.
Jeremy. (This used to be commit d85cbdbe296ec6de5bdbd66a90ca41345f55c837)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 60ec632b83..2c0950de03 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -97,7 +97,12 @@ static ssize_t client_receive_smb(struct cli_state *cli, size_t maxlen)
return -1;
}
- if (len < 0) {
+ /*
+ * I don't believe len can be < 0 with NT_STATUS_OK
+ * returned above, but this check doesn't hurt. JRA.
+ */
+
+ if ((ssize_t)len < 0) {
return len;
}