summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-19 10:37:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:30 -0500
commit7267cb3312f148be8cd00eb76b8e137cd4b2a314 (patch)
tree57c53a26c272a60ea0f79345f3e64391254d4138 /source4/ldap_server
parent7b23cd45883d1d75ffd2fabf936979500e046d62 (diff)
downloadsamba-7267cb3312f148be8cd00eb76b8e137cd4b2a314.tar.gz
samba-7267cb3312f148be8cd00eb76b8e137cd4b2a314.tar.bz2
samba-7267cb3312f148be8cd00eb76b8e137cd4b2a314.zip
r7749: some bug fixes from testing with socket:testnonblock
- fixed some infinite loops in asn1.c - ensure asn1 callers know if an error is end of buffer or bad data - handle npending 0 in ldap server (This used to be commit f22c3b84c8912ccd36e676a782b58f1841be8875)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c
index bf64735b0b..5ac50bd514 100644
--- a/source4/ldap_server/ldap_server.c
+++ b/source4/ldap_server/ldap_server.c
@@ -254,10 +254,10 @@ static void ldapsrv_recv(struct stream_connection *c, uint16_t flags)
return;
}
if (npending == 0) {
+ ldapsrv_terminate_connection(conn, "EOF from client");
return;
}
-
conn->partial.data = talloc_realloc_size(conn, conn->partial.data,
conn->partial.length + npending);
if (conn->partial.data == NULL) {