mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Abort the create_socket test if socket creation fails.
MFC after: 1 week Reported by: Coverity CID: 1232756
This commit is contained in:
parent
9196891fc9
commit
6addc01e8f
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ ATF_TC_BODY(create_socket, tc)
|
|||
int s;
|
||||
|
||||
s = socket(PF_LOCAL, SOCK_SEQPACKET, 0);
|
||||
ATF_CHECK(s >= 0);
|
||||
ATF_REQUIRE(s >= 0);
|
||||
close(s);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue