aboutsummaryrefslogtreecommitdiffstats
path: root/opie.c
diff options
context:
space:
mode:
Diffstat (limited to 'opie.c')
-rw-r--r--opie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opie.c b/opie.c
index 90be8035..c186908f 100644
--- a/opie.c
+++ b/opie.c
@@ -38,10 +38,10 @@ int do_otp(int sock, const char *command, struct query *ctl)
if ((rval = gen_recv(sock, buffer, sizeof(buffer))))
return rval;
- if (strncmp(buffer, "+", 1)) {
+ if (strncmp(buffer, "+", 1)) {
report(stderr, GT_("server recv fatal\n"));
return PS_AUTHFAIL;
- }
+ }
to64frombits(buffer, ctl->remotename, strlen(ctl->remotename), sizeof buffer);
suppress_tags = TRUE;
@@ -51,7 +51,7 @@ int do_otp(int sock, const char *command, struct query *ctl)
if ((rval = gen_recv(sock, buffer, sizeof(buffer))))
return rval;
- memset(challenge, '\0', sizeof(challenge));
+ memset(challenge, '\0', sizeof(challenge));
if ((i = from64tobits(challenge, buffer+2, sizeof(challenge))) < 0) {
report(stderr, GT_("Could not decode OTP challenge\n"));
return PS_AUTHFAIL;