Mercurial > hg > nnchat
changeset 23:40fecbab1dc1
Check for error condition properly.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 27 Jun 2008 03:09:23 +0300 |
parents | ccf302dae898 |
children | 78d260256450 |
files | nnchat.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 = "<policy-file-request/>"; - 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 {