# HG changeset patch # User Matt Johnston # Date 1426086627 -28800 # Node ID cce03ea8e6eb4a5235eede4b2e936544beadbf02 # Parent 23103e1e9548a1814d5ac28a423f9966152c1a60 strdup strerror diff -r 23103e1e9548 -r cce03ea8e6eb netio.c --- a/netio.c Tue Mar 03 20:53:00 2015 +0800 +++ b/netio.c Wed Mar 11 23:10:27 2015 +0800 @@ -241,7 +241,7 @@ 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);