Skip to content

Commit 972490c

Browse files
committed
refs is now unused
1 parent 07f4412 commit 972490c

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

Modules/LDAPObject.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,6 @@ l_ldap_result4(LDAPObject *self, PyObject *args)
10861086
char *retoid = 0;
10871087
PyObject *valuestr = NULL;
10881088
int result = LDAP_SUCCESS;
1089-
char **refs = NULL;
10901089
LDAPControl **serverctrls = 0;
10911090

10921091
if (!PyArg_ParseTuple
@@ -1157,23 +1156,15 @@ l_ldap_result4(LDAPObject *self, PyObject *args)
11571156
}
11581157

11591158
LDAP_BEGIN_ALLOW_THREADS(self);
1160-
rc = ldap_parse_result(self->ldap, msg, &result, NULL, NULL, &refs,
1159+
rc = ldap_parse_result(self->ldap, msg, &result, NULL, NULL, NULL,
11611160
&serverctrls, 0);
11621161
LDAP_END_ALLOW_THREADS(self);
11631162
}
11641163

11651164
if (result != LDAP_SUCCESS) { /* result error */
1166-
char *e, err[1024];
1167-
1168-
if (result == LDAP_REFERRAL && refs && refs[0]) {
1169-
snprintf(err, sizeof(err), "Referral:\n%s", refs[0]);
1170-
e = err;
1171-
}
1172-
else
1173-
e = "ldap_parse_result";
11741165
ldap_controls_free(serverctrls);
11751166
Py_XDECREF(valuestr);
1176-
return LDAPraise_for_message(self->ldap, e, msg);
1167+
return LDAPraise_for_message(self->ldap, "ldap_parse_result", msg);
11771168
}
11781169

11791170
if (!(pyctrls = LDAPControls_to_List(serverctrls))) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy