mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
tests/unix_seqpacket: mk_pair_of_sockets() requires a valid argument
All callers do it right. Don't be overprotective against a stupid caller and thus don't look like a code that leaks a resource. Reported by: Coverity Scan CID: 1539210
This commit is contained in:
parent
59c8e88e72
commit
55951611e4
@ -124,10 +124,8 @@ mk_pair_of_sockets(int *sv)
|
||||
atf_tc_fail("accept(2) failed");
|
||||
}
|
||||
|
||||
if (sv != NULL) {
|
||||
sv[0] = s1;
|
||||
sv[1] = s2;
|
||||
}
|
||||
sv[0] = s1;
|
||||
sv[1] = s2;
|
||||
|
||||
close(s);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user