In some cases a null realm argument was passed into the function for
locating the kpasswd server. This ended up causing segfaults in
kpasswd. Fix to use the right realm.
ticket: new
Tags: pullup
Target_Version: 1.3
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15379
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-04-28 Sam Hartman <hartmans@mit.edu>
+
+ * changepw.c (krb5_change_set_password): Locate server in realm of
+ creds.server, not in realm of target principal because target
+ principal is null in the changepw case.
+
2003-04-28 Ken Raeburn <raeburn@mit.edu>
* init_os_ctx.c (krb5_os_init_context, krb5_os_free_context):
goto cleanup;
if ((code = krb5_locate_kpasswd(context,
- krb5_princ_realm(context, set_password_for),
+ krb5_princ_realm(context, creds->server),
&al)))
goto cleanup;