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:
@@ -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;
|
||||
}
|
||||
|
||||
close(s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user