]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
fix read of 0 bytes problem and make buffer null terminated before using strstr
authorSeven Du <dujinfang@gmail.com>
Tue, 27 Jan 2015 15:14:18 +0000 (23:14 +0800)
committerSeven Du <dujinfang@gmail.com>
Tue, 27 Jan 2015 15:18:52 +0000 (23:18 +0800)
commitb87d42c41e6879b56106656e105ab853946e1602
treeb06f428dda346a3fd79c8c082247b4ef8809a698
parentc16f9ec1d97500bf03a196a1ff0d7b9b30b51d5f
fix read of 0 bytes problem and make buffer null terminated before using strstr

on debian 7, ws_raw_read returns 0 when client side disconnect the socket,
no HUP is detected and it resulted in an infinite loop.
src/mod/endpoints/mod_verto/mod_verto.c