summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index 67bde5560..042b18f54 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -803,7 +803,7 @@ new_socket(sock_type type, int fd)
803 } 803 }
804 old_alloc = sockets_alloc; 804 old_alloc = sockets_alloc;
805 new_alloc = sockets_alloc + 10; 805 new_alloc = sockets_alloc + 10;
806 sockets = xrealloc(sockets, new_alloc * sizeof(sockets[0])); 806 sockets = xrealloc(sockets, new_alloc, sizeof(sockets[0]));
807 for (i = old_alloc; i < new_alloc; i++) 807 for (i = old_alloc; i < new_alloc; i++)
808 sockets[i].type = AUTH_UNUSED; 808 sockets[i].type = AUTH_UNUSED;
809 sockets_alloc = new_alloc; 809 sockets_alloc = new_alloc;