From 19e96f80945614b2f04973126f9f41e8b304785d Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 24 Aug 1999 23:28:07 +0000 Subject: [PATCH] (set_password): use correct variable. From Love git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6865 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kadmin/cpw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kadmin/cpw.c b/kadmin/cpw.c index 6e19102a6..37682108a 100644 --- a/kadmin/cpw.c +++ b/kadmin/cpw.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 1998 Kungliga Tekniska Högskolan + * Copyright (c) 1997, 1998, 1999 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -101,9 +101,9 @@ static int set_password (krb5_principal principal, char *password) { krb5_error_code ret = 0; - char *pw, pwbuf[128]; + char pwbuf[128]; - if(pw == NULL) { + if(password == NULL) { char *princ_name; char *prompt; @@ -115,10 +115,10 @@ set_password (krb5_principal principal, char *password) if(ret){ return 0; /* XXX error code? */ } - pw = pwbuf; + password = pwbuf; } if(ret == 0) - ret = kadm5_chpass_principal(kadm_handle, principal, pw); + ret = kadm5_chpass_principal(kadm_handle, principal, password); memset(pwbuf, 0, sizeof(pwbuf)); return ret; }