summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c
index c3d13c81..5b0dba05 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -439,6 +439,7 @@ ssh_string agent_sign_data(struct ssh_session_struct *session,
}
ssh_string_free(blob);
+ blob = NULL;
reply = ssh_buffer_new();
if (reply == NULL) {
@@ -451,6 +452,7 @@ ssh_string agent_sign_data(struct ssh_session_struct *session,
return NULL;
}
ssh_buffer_free(request);
+ request = NULL;
/* check if reply is valid */
if (buffer_get_u8(reply, (uint8_t *) &type) != sizeof(uint8_t)) {