summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-03-11 23:10:27 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-03-11 23:10:27 +0800
commit67b4fa313e3bdba832574c6108593705136158da (patch)
tree5af0a01ebf90517137951ad2601bf57afca56937 /netio.c
parent5dff74109e566b3ed18298974c2d4d8afe6d817a (diff)
strdup strerror
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);