From: "cron2 (Code Review)" Date: Thu, 26 Sep 2024 12:58:02 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="08UqmZ6XvA4="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Fix socketpair return status not being checked in port share code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , openvpn-devel --08UqmZ6XvA4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/770?usp=3Demail ) Change subject: Fix socketpair return status not being checked in port shar= e code ...................................................................... Patch Set 2: Code-Review-1 (1 comment) File src/openvpn/ps.c: http://gerrit.openvpn.net/c/openvpn/+/770/comment/299616be_4ad3018f : PS2, Line 854: if (!(socketpair(PF_UNIX, SOCK_DGRAM, 0, fd) =3D=3D 0)) can we please not do double-negate-conditions for standard syscall return v= alue checking?? `=3D=3D -1` or `<0` is perfectly fine, according to the ma= npage. My brain hurts. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/770?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Id99a3ba13c0f1d0bc7e4699fb67ee9dff6221639 Gerrit-Change-Number: 770 Gerrit-PatchSet: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Comment-Date: Thu, 26 Sep 2024 12:58:02 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --08UqmZ6XvA4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

Patch set 2:Code-Review -1=

Vi= ew Change

1 comment:

  • File src/openvpn/ps.c:

    • Patch Set #2, Line 854: = if (!(socketpair(PF_UNI= X, SOCK_DGRAM, 0, fd) =3D=3D 0))

      can we please not do double-negate-conditions fo= r standard syscall return value checking?? `=3D=3D -1` or `<0` is perfe= ctly fine, according to the manpage. My brain hurts.

  • To view, visit change 770. To unsubscribe, or for help writing mail filters= , visit settings.

    Gerrit-Project: openvpn
    Gerrit-Branch: master
    Gerrit-Change-Id: Id99a3ba13c0f1d0bc7e4699fb67= ee9dff6221639
    Gerrit-Change-Number: 770
    Gerrit-PatchSet: 2
    Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
    Gerrit-Reviewer: cron2 <gert@...1296...>=
    Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
    Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
    Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
    Gerrit-Comment-Date: Thu, 26 Sep 2024 12:58:02= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment
    --08UqmZ6XvA4=--