]> git.tue.mpg.de Git - paraslash.git/commit
http_send.c: Fix a bug in http_post_select().
authorAndre Noll <maan@systemlinux.org>
Mon, 4 Feb 2008 19:41:00 +0000 (20:41 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 4 Feb 2008 19:41:00 +0000 (20:41 +0100)
commit3ac7a00c79a39801f497b48385dae580a08c3cf8
tree71615f0a5cef1a9a4703a6017ecd9924f024758d
parent2b4a72bab701de1add388f89a92f1b7a358dab79
http_send.c: Fix a bug in http_post_select().

If the accept() on the listen_fd fails, we don't have a valid
file descriptor but tried to close it anyway. Even worse, the
old code dereferenced and then freed the "sc" pointer which
isn't inititialized at that point.
http_send.c