diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-05-21 20:58:51 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-05-21 20:58:51 -0600 |
commit | d31cd71e5a3d73e20cfff89968c7b932d451f75c (patch) | |
tree | 264309197f0d847683df0ef960f87d5734c5f225 /pith/ldap.c | |
parent | 2e57dfe03e4df802d530ae217415d50419ab4e20 (diff) | |
download | alpine-d31cd71e5a3d73e20cfff89968c7b932d451f75c.tar.xz |
* Clear out some gcc warnings, and code improvement. Work in progress.
Diffstat (limited to 'pith/ldap.c')
-rw-r--r-- | pith/ldap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pith/ldap.c b/pith/ldap.c index 8a351bc1..a091fc26 100644 --- a/pith/ldap.c +++ b/pith/ldap.c @@ -654,13 +654,14 @@ try_password_again: if(!tlsmustbail){ snprintf(pmt, sizeof(pmt), " %s", (info->nick && *info->nick) ? info->nick : serv); mm_login_work(&mb, user, &pwd, pwdtrial, pmt, info->binddn); - if(pwd && pwd[0]) + if(pwd && pwd[0]){ #ifdef _WINDOWS passwd = pwd; #else passwd.bv_len = strlen(pwd); passwd.bv_val = pwd; #endif + } } } @@ -709,7 +710,7 @@ try_password_again: dprint((2, "%s\n", ebuf)); } else if(!ps_global->intr_pending){ - int srch_res, args, slen, flen; + int srch_res = LDAP_SUCCESS, args, slen, flen; #define TEMPLATELEN 512 char filt_template[TEMPLATELEN + 1]; char filt_format[2*TEMPLATELEN + 1]; |