diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: ssh.c,v 1.187 2002/11/21 23:04:33 markus Exp $"); | 43 | RCSID("$OpenBSD: ssh.c,v 1.188 2002/11/27 17:53:35 markus Exp $"); |
44 | 44 | ||
45 | #include <openssl/evp.h> | 45 | #include <openssl/evp.h> |
46 | #include <openssl/err.h> | 46 | #include <openssl/err.h> |
@@ -495,9 +495,9 @@ again: | |||
495 | av += optind; | 495 | av += optind; |
496 | 496 | ||
497 | if (ac > 0 && !host && **av != '-') { | 497 | if (ac > 0 && !host && **av != '-') { |
498 | if (strchr(*av, '@')) { | 498 | if (strrchr(*av, '@')) { |
499 | p = xstrdup(*av); | 499 | p = xstrdup(*av); |
500 | cp = strchr(p, '@'); | 500 | cp = strrchr(p, '@'); |
501 | if (cp == NULL || cp == p) | 501 | if (cp == NULL || cp == p) |
502 | usage(); | 502 | usage(); |
503 | options.user = p; | 503 | options.user = p; |