comparison common-session.c @ 1302:6a14b1f6dc04

better TRACE of failed remote ident
author Matt Johnston <matt@ucc.asn.au>
date Mon, 11 Jul 2016 21:51:25 +0800
parents 9169e4e7cbee
children 090033317ca1
comparison
equal deleted inserted replaced
1285:309e1c4a8768 1302:6a14b1f6dc04
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);