From: Arran Cudbard-Bell Date: Mon, 10 Dec 2012 10:45:54 +0000 (+0000) Subject: Don't pass presult X-Git-Tag: release_3_0_0_beta1~1396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dca3e01a99f795c0b1c25dea805a48de9a9669db;p=thirdparty%2Ffreeradius-server.git Don't pass presult --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index c41a5a96943..1982d356169 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -2108,8 +2108,6 @@ static int user_modify(ldap_instance *inst, REQUEST *request, const char *attr; const char *value; - int presult = 0; - const char *user_dn; conn = ldap_get_socket(inst); @@ -2291,7 +2289,7 @@ static int user_modify(ldap_instance *inst, REQUEST *request, RDEBUG2("Modifying user object with DN \"%s\"", user_dn); ldap_errno = ldap_modify_ext_s(conn->handle, user_dn, modify, NULL, - NULL, &presult); + NULL); if (ldap_errno < 0) { ldap_get_option(conn->handle, LDAP_OPT_ERROR_NUMBER,