Mercurial > hg > quicktun
changeset 3:27632fe319bd
Fix segfault?
author | ivo <ivo@UFO-Net.nl> |
---|---|
date | Thu, 07 Oct 2010 16:04:53 +0200 |
parents | b2c7c83a1dda |
children | a989ecbd5f53 |
files | src/common.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/common.c Thu Oct 07 16:01:41 2010 +0200 +++ b/src/common.c Thu Oct 07 16:04:53 2010 +0200 @@ -219,7 +219,8 @@ } else { len = p->decode(&session, buffer_enc, buffer_raw, len); if (len != 0 && session.remote_float != 0 && (session.remote_addr.sin_addr.s_addr != recvaddr.sin_addr.s_addr || session.remote_addr.sin_port != recvaddr.sin_port)) { - fprintf(stderr, "Remote endpoint has changed to %s:%d", inet_ntoa(recvaddr.sin_addr), ntohs(recvaddr.sin_port)); + //fprintf(stderr, "Remote endpoint has changed to %s:%d", inet_ntoa(recvaddr.sin_addr), ntohs(recvaddr.sin_port)); + fprintf(stderr, "Remote endpoint has changed to %s:%d", 0, 0); session.remote_addr = recvaddr; session.remote_float = 2; }