diff options
Diffstat (limited to 'sshconnect1.c')
-rw-r--r-- | sshconnect1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect1.c b/sshconnect1.c index c5a76654b..31ee9843c 100644 --- a/sshconnect1.c +++ b/sshconnect1.c | |||
@@ -9,7 +9,7 @@ | |||
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include "includes.h" | 11 | #include "includes.h" |
12 | RCSID("$OpenBSD: sshconnect1.c,v 1.1 2000/04/26 21:28:33 markus Exp $"); | 12 | RCSID("$OpenBSD: sshconnect1.c,v 1.2 2000/05/04 22:38:00 markus Exp $"); |
13 | 13 | ||
14 | #include <openssl/bn.h> | 14 | #include <openssl/bn.h> |
15 | #include <openssl/dsa.h> | 15 | #include <openssl/dsa.h> |
@@ -505,7 +505,7 @@ send_kerberos_tgt() | |||
505 | debug("Kerberos V4 ticket expired: %s", TKT_FILE); | 505 | debug("Kerberos V4 ticket expired: %s", TKT_FILE); |
506 | return 0; | 506 | return 0; |
507 | } | 507 | } |
508 | creds_to_radix(creds, (unsigned char *)buffer); | 508 | creds_to_radix(creds, (unsigned char *)buffer, sizeof buffer); |
509 | xfree(creds); | 509 | xfree(creds); |
510 | 510 | ||
511 | packet_start(SSH_CMSG_HAVE_KERBEROS_TGT); | 511 | packet_start(SSH_CMSG_HAVE_KERBEROS_TGT); |
@@ -573,7 +573,7 @@ send_afs_tokens(void) | |||
573 | creds.pinst[0] = '\0'; | 573 | creds.pinst[0] = '\0'; |
574 | 574 | ||
575 | /* Encode token, ship it off. */ | 575 | /* Encode token, ship it off. */ |
576 | if (!creds_to_radix(&creds, (unsigned char*) buffer)) | 576 | if (creds_to_radix(&creds, (unsigned char*) buffer, sizeof buffer) <= 0) |
577 | break; | 577 | break; |
578 | packet_start(SSH_CMSG_HAVE_AFS_TOKEN); | 578 | packet_start(SSH_CMSG_HAVE_AFS_TOKEN); |
579 | packet_put_string(buffer, strlen(buffer)); | 579 | packet_put_string(buffer, strlen(buffer)); |