diff options
author | Damien Miller <djm@mindrot.org> | 2010-03-04 14:17:22 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2010-03-04 14:17:22 +1100 |
commit | 910f209c1d08b9b91f744c571fbf805206f04729 (patch) | |
tree | fb9d6a30a5be082dc563d92552b765bd6cb93ea0 | |
parent | 386dbc05e9c8c34dde5abe62a7804b4747b0de06 (diff) |
- (djm) [ssh-keygen.c] Use correct local variable, instead of
maybe-undefined global "optarg"
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ssh-keygen.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20100304 | ||
2 | - (djm) [ssh-keygen.c] Use correct local variable, instead of | ||
3 | maybe-undefined global "optarg" | ||
4 | |||
1 | 20100303 | 5 | 20100303 |
2 | - (djm) [PROTOCOL.certkeys] Add RCS Ident | 6 | - (djm) [PROTOCOL.certkeys] Add RCS Ident |
3 | - OpenBSD CVS Sync | 7 | - OpenBSD CVS Sync |
diff --git a/ssh-keygen.c b/ssh-keygen.c index 7dc10808c..f910dce38 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1300,7 +1300,7 @@ parse_cert_times(char *timespec) | |||
1300 | from = xstrdup(timespec); | 1300 | from = xstrdup(timespec); |
1301 | to = strchr(from, ':'); | 1301 | to = strchr(from, ':'); |
1302 | if (to == NULL || from == to || *(to + 1) == '\0') | 1302 | if (to == NULL || from == to || *(to + 1) == '\0') |
1303 | fatal("Invalid certificate life specification %s", optarg); | 1303 | fatal("Invalid certificate life specification %s", timespec); |
1304 | *to++ = '\0'; | 1304 | *to++ = '\0'; |
1305 | 1305 | ||
1306 | if (*from == '-' || *from == '+') | 1306 | if (*from == '-' || *from == '+') |