From: Collin Funk Date: Sat, 4 Oct 2025 07:52:57 +0000 (-0700) Subject: manual: check the correct variable in SIOCATMARK example [BZ #33093] X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcfbc3ee310519f600b712c699e2f411c6a5c7d6;p=thirdparty%2Fglibc.git manual: check the correct variable in SIOCATMARK example [BZ #33093] * manual/socket.texi (Out-of-Band Data): Check the atmark variable which is set by the ioctl instead of the undefined result variable. Reviewed-by: Adhemerval Zanella --- 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.}