diff options
author | Garming Sam <garming@catalyst.net.nz> | 2013-12-05 11:53:14 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-12-06 07:13:29 +0100 |
commit | df9df7419500c42aae3cb7ccf43159d69b80b471 (patch) | |
tree | 3c9f177d5a2128b2535d991e2a5117a6909aeccc /source4 | |
parent | 43c021512cab2469b5ef6bb5074ee3f3b9da42a0 (diff) | |
download | samba-df9df7419500c42aae3cb7ccf43159d69b80b471.tar.gz |
cldap: quieten error when abandon packet is sent
The specification indicates that no response needs to be sent when receiving
an abandon request packet.
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Dec 6 07:13:29 CET 2013 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/cldap_server/cldap_server.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/cldap_server/cldap_server.c b/source4/cldap_server/cldap_server.c index 774142e2eae..3d20201b80e 100644 --- a/source4/cldap_server/cldap_server.c +++ b/source4/cldap_server/cldap_server.c @@ -48,6 +48,13 @@ static void cldapd_request_handler(struct cldap_socket *cldap, struct cldapd_server); struct ldap_SearchRequest *search; + if (in->ldap_msg->type == LDAP_TAG_AbandonRequest) { + DEBUG(10,("Got (and ignoring) CLDAP AbandonRequest from %s.", + tsocket_address_string(in->src, in))); + talloc_free(in); + return; + } + if (in->ldap_msg->type != LDAP_TAG_SearchRequest) { DEBUG(0,("Invalid CLDAP request type %d from %s\n", in->ldap_msg->type, |