]> git.ipfire.org Git - thirdparty/asterisk.git/commit
test.c: Avoid passing -1 to FD_* family of functions.
authorSean Bright <sean@seanbright.com>
Tue, 28 Feb 2023 00:35:11 +0000 (19:35 -0500)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 28 Feb 2023 18:24:43 +0000 (12:24 -0600)
commita724298da99259373ef2be383b035a8a35800baf
treeb8a6945df79ffe7617b78ab89518b7254167afeb
parentf4965b9430017f220d7d9ddf62367884bb79d959
test.c: Avoid passing -1 to FD_* family of functions.

This avoids buffer overflow errors when running tests that capture
output from child processes.

This also corrects a copypasta in an off-nominal error message.

Change-Id: Ib482847a3515364f14c7e7a0c0a4213851ddb10d
main/test.c