Skip to content

Commit

Permalink
Correctly use k5_wrapmsg() in ldap_principal2.c
Browse files Browse the repository at this point in the history
Commit ebcdf02 incorrectly used
k5_prependmsg() in an error handling clause in
krb5_ldap_get_principal().  Use k5_wrapmsg() instead.

(cherry picked from commit 412c19f)

ticket: 8301
version_fixed: 1.14.1
  • Loading branch information
tlyu committed Dec 17, 2015
1 parent 2767ef1 commit ad14dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,8 @@ krb5_ldap_put_principal(krb5_context context, krb5_db_entry *entry,
if (st == KRB5_KDB_NOENTRY || st == KRB5_KDB_CONSTRAINT_VIOLATION) {
int ost = st;
st = EINVAL;
k5_prependmsg(context, ost, st, _("'%s' not found"),
xargs.containerdn);
k5_wrapmsg(context, ost, st, _("'%s' not found"),
xargs.containerdn);
}
goto cleanup;
}
Expand Down

0 comments on commit ad14dbf

Please sign in to comment.