mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 18:52:00 +00:00
strdup strerror
This commit is contained in:
parent
5dff74109e
commit
67b4fa313e
2
netio.c
2
netio.c
@ -241,7 +241,7 @@ void handle_connect_fds(fd_set *writefd) {
|
|||||||
c->sock = -1;
|
c->sock = -1;
|
||||||
|
|
||||||
m_free(c->errstring);
|
m_free(c->errstring);
|
||||||
c->errstring = strerror(val);
|
c->errstring = m_strdup(strerror(val));
|
||||||
} else {
|
} else {
|
||||||
/* New connection has been established */
|
/* New connection has been established */
|
||||||
c->cb(DROPBEAR_SUCCESS, c->sock, c->cb_data, NULL);
|
c->cb(DROPBEAR_SUCCESS, c->sock, c->cb_data, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user