comparison common-session.c @ 1316:2c9dac2d6707

merge 2016.74
author Matt Johnston <matt@ucc.asn.au>
date Thu, 21 Jul 2016 23:38:42 +0800
parents 750ec4ec4cbe 090033317ca1
children 08f4fa4dc6a0 0c16b4ccbd54
comparison
equal deleted inserted replaced
1298:251c5f7a6e96 1316:2c9dac2d6707
359 break; 359 break;
360 } 360 }
361 } 361 }
362 362
363 if (!done) { 363 if (!done) {
364 TRACE(("err: %s for '%s'\n", strerror(errno), linebuf)) 364 TRACE(("error reading remote ident: %s\n", strerror(errno)))
365 ses.remoteclosed(); 365 ses.remoteclosed();
366 } else { 366 } else {
367 /* linebuf is already null terminated */ 367 /* linebuf is already null terminated */
368 ses.remoteident = m_malloc(len); 368 ses.remoteident = m_malloc(len);
369 memcpy(ses.remoteident, linebuf, len); 369 memcpy(ses.remoteident, linebuf, len);