mirror of
https://github.com/samba-team/samba.git
synced 2025-01-19 10:03:58 +03:00
r2851: don't destroy the gensec context it's used for sign and seal
check the result of ldap_receive() metze
This commit is contained in:
parent
d02fab41f8
commit
778cf6d92b
@ -1557,8 +1557,6 @@ int ldap_bind_sasl(struct ldap_connection *conn, const char *username, const cha
|
||||
}
|
||||
|
||||
done:
|
||||
if (conn->gensec)
|
||||
gensec_end(&conn->gensec);
|
||||
if (mem_ctx)
|
||||
talloc_destroy(mem_ctx);
|
||||
|
||||
@ -1696,6 +1694,9 @@ struct ldap_message *ldap_getsearchent(struct ldap_connection *conn,
|
||||
}
|
||||
|
||||
result = ldap_receive(conn, conn->searchid, endtime);
|
||||
if (!result) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (result->type == LDAP_TAG_SearchResultEntry)
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user