Skip to content

Commit

Permalink
Merge pull request #18125 from donaldsharp/bfd_fd_zero
Browse files Browse the repository at this point in the history
bfdd: 0 is a valid fd.
  • Loading branch information
mjstapp authored Feb 12, 2025
2 parents 9219fa3 + 7535465 commit 6d14b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bfdd/bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ int bfd_session_enable(struct bfd_session *bs)
*/
if (bs->bfd_mode == BFD_MODE_TYPE_SBFD_ECHO || bs->bfd_mode == BFD_MODE_TYPE_SBFD_INIT) {
psock = bp_peer_srh_socketv6(bs);
if (psock <= 0) {
if (psock < 0) {
zlog_err("bp_peer_srh_socketv6 error");
return 0;
}
Expand Down

0 comments on commit 6d14b16

Please sign in to comment.