summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 23b0cbd59..6749d3f93 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -1222,6 +1222,7 @@ mm_ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_desc *data, gss_buffer_desc *hash)
1222{ 1222{
1223 Buffer m; 1223 Buffer m;
1224 OM_uint32 major; 1224 OM_uint32 major;
1225 u_int len;
1225 1226
1226 buffer_init(&m); 1227 buffer_init(&m);
1227 buffer_put_string(&m, data->value, data->length); 1228 buffer_put_string(&m, data->value, data->length);
@@ -1230,7 +1231,8 @@ mm_ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_desc *data, gss_buffer_desc *hash)
1230 mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSSIGN, &m); 1231 mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSSIGN, &m);
1231 1232
1232 major = buffer_get_int(&m); 1233 major = buffer_get_int(&m);
1233 hash->value = buffer_get_string(&m, &hash->length); 1234 hash->value = buffer_get_string(&m, &len);
1235 hash->length = len;
1234 1236
1235 buffer_free(&m); 1237 buffer_free(&m);
1236 1238