summaryrefslogtreecommitdiffstats
path: root/src/cmd/factotum/p9any.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-11 16:56:15 +0000
committerrsc <devnull@localhost>2005-02-11 16:56:15 +0000
commit2e397eb47c87e78b4a9e2f4a550be4792bd05fa2 (patch)
tree696a69f20b422623857dc00cf309791db2d346e7 /src/cmd/factotum/p9any.c
parent3889d01d4b0d7a0c5e32ba81fb3c7e01094b8884 (diff)
downloadplan9port-2e397eb47c87e78b4a9e2f4a550be4792bd05fa2.tar.gz
plan9port-2e397eb47c87e78b4a9e2f4a550be4792bd05fa2.zip
bug fixes; add secstore
Diffstat (limited to 'src/cmd/factotum/p9any.c')
-rw-r--r--src/cmd/factotum/p9any.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/factotum/p9any.c b/src/cmd/factotum/p9any.c
index 388ee388..59a660fe 100644
--- a/src/cmd/factotum/p9any.c
+++ b/src/cmd/factotum/p9any.c
@@ -119,7 +119,7 @@ out:
static int
p9anyclient(Conv *c)
{
- char *s, **f, *tok[20], ok[3], *q, *user, *dom;
+ char *s, **f, *tok[20], ok[3], *q, *user, *dom, *choice;
int i, n, ret, version;
Key *k;
Attr *attr;
@@ -222,12 +222,12 @@ found:
c->state = "write choice";
/* have a key: go for it */
- s = estrappend(nil, "%q %q", f[i], q);
- if(convwrite(c, s, strlen(s)+1) < 0){
- free(s);
+ choice = estrappend(nil, "%q %q", f[i], q);
+ if(convwrite(c, choice, strlen(choice)+1) < 0){
+ free(choice);
goto out;
}
- free(s);
+ free(choice);
if(version == 2){
c->state = "read ok";