aboutsummaryrefslogtreecommitdiffstats
path: root/gssapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'gssapi.c')
-rw-r--r--gssapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gssapi.c b/gssapi.c
index b33e2f45..cfc16d27 100644
--- a/gssapi.c
+++ b/gssapi.c
@@ -119,7 +119,7 @@ int do_gssauth(int sock, char *command, char *hostname, char *username)
gss_release_name(&min_stat, &target_name);
return result;
}
- request_buf.length = from64tobits(buf2, buf1 + 2);
+ request_buf.length = from64tobits(buf2, buf1 + 2, sizeof(buf2));
request_buf.value = buf2;
sec_token = &request_buf;
}
@@ -131,7 +131,7 @@ int do_gssauth(int sock, char *command, char *hostname, char *username)
if (result = gen_recv(sock, buf1, sizeof buf1))
return result;
- request_buf.length = from64tobits(buf2, buf1 + 2);
+ request_buf.length = from64tobits(buf2, buf1 + 2, sizeof(buf2));
request_buf.value = buf2;
maj_stat = gss_unwrap(&min_stat, context,