summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-25 23:54:22 +0100
committerVolker Lendecke <vl@samba.org>2008-02-02 11:03:23 +0100
commit88c27f83d449fa20cba47cbf0a5dbaedc99859d8 (patch)
treec4ccbf8a59835c893a0d3da176d5d968bcf7c459 /source3/utils
parent6ddfa6ae7734ffdd26ac38478c27cc9d646ddadd (diff)
downloadsamba-88c27f83d449fa20cba47cbf0a5dbaedc99859d8.tar.gz
samba-88c27f83d449fa20cba47cbf0a5dbaedc99859d8.tar.bz2
samba-88c27f83d449fa20cba47cbf0a5dbaedc99859d8.zip
Convert receive_smb_raw to NTSTATUS
(This used to be commit ba771bd858602452a9e58c3aab1336f2ac8a25ef)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbfilter.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c
index 8db969722a..e128e1ce34 100644
--- a/source3/utils/smbfilter.c
+++ b/source3/utils/smbfilter.c
@@ -169,7 +169,9 @@ static void filter_child(int c, struct sockaddr_storage *dest_ss)
if (num <= 0) continue;
if (c != -1 && FD_ISSET(c, &fds)) {
- if (!receive_smb_raw(c, packet, 0, 0, NULL)) {
+ size_t len;
+ if (!NT_STATUS_IS_OK(receive_smb_raw(
+ c, packet, 0, 0, &len))) {
d_printf("client closed connection\n");
exit(0);
}
@@ -180,7 +182,9 @@ static void filter_child(int c, struct sockaddr_storage *dest_ss)
}
}
if (s != -1 && FD_ISSET(s, &fds)) {
- if (!receive_smb_raw(s, packet, 0, 0, NULL)) {
+ size_t len;
+ if (!NT_STATUS_IS_OK(receive_smb_raw(
+ s, packet, 0, 0, &len))) {
d_printf("server closed connection\n");
exit(0);
}