]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel.c: Fix off nominal channel allocation failure path.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 22 May 2018 22:17:31 +0000 (17:17 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 22 May 2018 22:41:42 +0000 (16:41 -0600)
commit1bec0c73b32835b2cedea4705ef46bcc4c7a4a2a
tree0ec7b83383c65b8d03b679e96c4a20dff5edb519
parent21dd609e77e2debb945b7cf05c7e101c2ec92f48
channel.c: Fix off nominal channel allocation failure path.

__ast_channel_alloc_ap() had a failure exit path that hadn't setup the fd
descriptors to -1 yet.  The destructor would then attempt to close these
fd's that had never been opened.

Change-Id: Icf21093f36c60781e8cf6ee9d586536302af33e3
main/channel.c