diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-03-11 23:10:27 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-03-11 23:10:27 +0800 |
commit | 67b4fa313e3bdba832574c6108593705136158da (patch) | |
tree | 5af0a01ebf90517137951ad2601bf57afca56937 /netio.c | |
parent | 5dff74109e566b3ed18298974c2d4d8afe6d817a (diff) |
strdup strerror
Diffstat (limited to 'netio.c')
-rw-r--r-- | netio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |