]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: check the correct variable in SIOCATMARK example [BZ #33093]
authorCollin Funk <collin.funk1@gmail.com>
Sat, 4 Oct 2025 07:52:57 +0000 (00:52 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 7 Oct 2025 02:14:59 +0000 (19:14 -0700)
* 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 <adhemerval.zanella@linaro.org>
manual/socket.texi

index 56948073d5649974cadd796bdb5c655b74208921..2ed8112344bf1afde56edf86f4b6b01c0dfa5c41 100644 (file)
@@ -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.}