strdup strerror

This commit is contained in:
Matt Johnston 2015-03-11 23:10:27 +08:00
parent 5dff74109e
commit 67b4fa313e

View File

@ -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);