summaryrefslogtreecommitdiff
path: root/netio.c
diff options
context:
space:
mode:
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netio.c b/netio.c
index 5d1e9a4..c955430 100644
--- a/netio.c
+++ b/netio.c
@@ -241,7 +241,7 @@ void handle_connect_fds(fd_set *writefd) {
c->sock = -1;
m_free(c->errstring);
- c->errstring = strerror(val);
+ c->errstring = m_strdup(strerror(val));
} else {
/* New connection has been established */
c->cb(DROPBEAR_SUCCESS, c->sock, c->cb_data, NULL);