summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manual/socket.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/socket.texi b/manual/socket.texi
index 56948073d5..2ed8112344 100644
--- a/manual/socket.texi
+++ b/manual/socket.texi
@@ -2999,7 +2999,7 @@ discard_until_mark (int socket)
success = ioctl (socket, SIOCATMARK, &atmark);
if (success < 0)
perror ("ioctl");
- if (result)
+ if (atmark)
return;
/* @r{Otherwise, read a bunch of ordinary data and discard it.}