Fix a file descriptor leak in off nominal path
authorMatthew Jordan <mjordan@digium.com>
Wed, 27 Mar 2013 18:52:16 +0000 (18:52 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 27 Mar 2013 18:52:16 +0000 (18:52 +0000)
commit15b892323a501b8e99f50d97379c38ce61af76ec
tree98910dccf8f4b08410461b2c74396a87ee56e4e7
parent15bbfb941f2faf637e00d6246be6799579836a90
Fix a file descriptor leak in off nominal path

While looking at the security vulnerability in ASTERISK-20967, Walter noticed
a file descriptor leak and some other issues in off nominal code paths. This
patch corrects them.

Note that this patch is not related to the vulnerability in ASTERISK-20967,
but the patch was placed on that issue.

(closes issue ASTERISK-20967)
Reported by: wdoekes
patches:
  issueA20967_file_leak_and_unused_wkspace.patch uploaded by wdoekes (License 5674)
........

Merged revisions 384118 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 384119 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/http.c