# HG changeset patch # User Matti Hamalainen # Date 1214525363 -10800 # Node ID 40fecbab1dc14c562e6281769f34ad5a7ca37931 # Parent ccf302dae89816eafe8b333b4358ed226328bc43 Check for error condition properly. diff -r ccf302dae898 -r 40fecbab1dc1 nnchat.c --- a/nnchat.c Sat Jun 21 11:16:09 2008 +0300 +++ b/nnchat.c Fri Jun 27 03:09:23 2008 +0300 @@ -742,7 +742,7 @@ } tmpStr = ""; - if (sendToSocket(tmpSocket, tmpStr, strlen(tmpStr) + 1) < 0) { + if (sendToSocket(tmpSocket, tmpStr, strlen(tmpStr) + 1) == FALSE) { THERR("Failed to send fakeprobe.\n"); goto err_exit; } else {