diff options
author | Tom Yu <tlyu@mit.edu> | 2002-08-15 20:20:59 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2002-08-15 20:20:59 +0000 |
commit | bf87ad4667a914122f2eaa5de924a4daa80f7af8 (patch) | |
tree | 8984bb26f5fe129cd18a10ae7242f46cd929e694 /src/clients | |
parent | 184dd2a8ca934816acca78b28389bf301ea11beb (diff) | |
download | krb5-bf87ad4667a914122f2eaa5de924a4daa80f7af8.tar.gz krb5-bf87ad4667a914122f2eaa5de924a4daa80f7af8.tar.xz krb5-bf87ad4667a914122f2eaa5de924a4daa80f7af8.zip |
* kvno.c (do_v4_kvno): Initialize name, inst, realm to empty
strings.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14725 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients')
-rw-r--r-- | src/clients/kvno/ChangeLog | 5 | ||||
-rw-r--r-- | src/clients/kvno/kvno.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/clients/kvno/ChangeLog b/src/clients/kvno/ChangeLog index 77f1a2559b..380b58231a 100644 --- a/src/clients/kvno/ChangeLog +++ b/src/clients/kvno/ChangeLog @@ -1,3 +1,8 @@ +2002-08-15 Tom Yu <tlyu@mit.edu> + + * kvno.c (do_v4_kvno): Initialize name, inst, realm to empty + strings. + 2002-07-30 Ezra Peisach <epeisach@bu.edu> * kvno.c (do_v4_kvno): If not compiling with v4 support, xusage diff --git a/src/clients/kvno/kvno.c b/src/clients/kvno/kvno.c index d007fa238d..505a73c875 100644 --- a/src/clients/kvno/kvno.c +++ b/src/clients/kvno/kvno.c @@ -106,6 +106,7 @@ static void do_v4_kvno (int count, char *names[]) char name[ANAME_SZ], inst[INST_SZ], realm[REALM_SZ]; KTEXT_ST req; CREDENTIALS creds; + *name = *inst = *realm = '\0'; err = kname_parse (name, inst, realm, names[i]); if (err) { fprintf(stderr, "%s: error parsing name '%s': %s\n", |