summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-01-12 22:56:03 +0100
committerStefan Metzmacher <metze@samba.org>2012-01-13 04:58:40 +0100
commit3ad7ca59b3914c41486953ebe00221737ccf3d15 (patch)
tree5b6650f450c407aea0287be4e6c76cc0316e66c4 /source4/auth/gensec
parentedaa933b17b98223f0a951777ff507d96692229a (diff)
downloadsamba-3ad7ca59b3914c41486953ebe00221737ccf3d15.tar.gz
samba-3ad7ca59b3914c41486953ebe00221737ccf3d15.tar.bz2
samba-3ad7ca59b3914c41486953ebe00221737ccf3d15.zip
s4:auth/gensec: inline packet_full_request_u32()
This removes the dependency to s4 specific code. metze
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r--source4/auth/gensec/socket.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/auth/gensec/socket.c b/source4/auth/gensec/socket.c
index 4ee1512e89..1d9620dcf8 100644
--- a/source4/auth/gensec/socket.c
+++ b/source4/auth/gensec/socket.c
@@ -155,7 +155,15 @@ NTSTATUS gensec_packet_full_request(struct gensec_security *gensec_security,
}
return STATUS_MORE_ENTRIES;
}
- return packet_full_request_u32(NULL, blob, size);
+
+ if (blob.length < 4) {
+ return STATUS_MORE_ENTRIES;
+ }
+ *size = 4 + RIVAL(blob.data, 0);
+ if (*size > blob.length) {
+ return STATUS_MORE_ENTRIES;
+ }
+ return NT_STATUS_OK;
}
static NTSTATUS gensec_socket_full_request(void *private_data, DATA_BLOB blob, size_t *size)