summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-kpasswd/ipa_kpasswd.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemons/ipa-kpasswd/ipa_kpasswd.c')
-rw-r--r--daemons/ipa-kpasswd/ipa_kpasswd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/daemons/ipa-kpasswd/ipa_kpasswd.c b/daemons/ipa-kpasswd/ipa_kpasswd.c
index a506cec1..dd2b4b85 100644
--- a/daemons/ipa-kpasswd/ipa_kpasswd.c
+++ b/daemons/ipa-kpasswd/ipa_kpasswd.c
@@ -491,9 +491,13 @@ int ldap_pwd_change(char *client_name, char *realm_name, krb5_data pwd, char **e
goto done;
}
- ber_printf(ctrl, "{tstO}",
+ ret = ber_printf(ctrl, "{tstO}",
LDAP_TAG_EXOP_MODIFY_PASSWD_ID, userdn,
LDAP_TAG_EXOP_MODIFY_PASSWD_NEW, &newpw);
+ if (ret < 0) {
+ syslog(LOG_ERR, "ber printf failed!");
+ goto done;
+ }
ret = ber_flatten(ctrl, &control);
if (ret < 0) {