NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/54323: src/lib/libisns/isns_thread.c:155: bad if ?



>Number:         54323
>Category:       lib
>Synopsis:       src/lib/libisns/isns_thread.c:155: bad if ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 24 14:10:00 +0000 2019
>Originator:     David Binderman
>Release:        cvs 20190624
>Organization:
>Environment:
>Description:
src/lib/libisns/isns_thread.c:155]: (warning) Logical conjunction always evaluates to false: rbytes < 0 && rbytes == sizeof(trans_id).

Source code is

       if ((rbytes < 0) && (rbytes == sizeof(trans_id)))
                                isns_abort_trans(cfg_p, trans_id);

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index