svn commit: samba r7756 - in
branches/SAMBA_4_0/source/rpc_server/samr: .
abartlet at samba.org
abartlet at samba.org
Sun Jun 19 12:55:47 GMT 2005
Author: abartlet
Date: 2005-06-19 12:55:46 +0000 (Sun, 19 Jun 2005)
New Revision: 7756
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7756
Log:
Don't segfault by trying to search for the NULL DN, if the wrong
password was entered. We would not use the results of the search in
any case.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c
Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c 2005-06-19 12:49:51 UTC (rev 7755)
+++ branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c 2005-06-19 12:55:46 UTC (rev 7756)
@@ -400,11 +400,13 @@
return NT_STATUS_OK;
failed:
- ret = gendb_search_dn(sam_ctx, mem_ctx,
- domain_dn, &res, dom_attrs);
-
- if (ret != 1) {
- return status;
+ if (domain_dn) {
+ ret = gendb_search_dn(sam_ctx, mem_ctx,
+ domain_dn, &res, dom_attrs);
+
+ if (ret != 1) {
+ return status;
+ }
}
/* on failure we need to fill in the reject reasons */
More information about the samba-cvs
mailing list