libnat bugs

Here you can submit your bug reports.

libnat bugs

Postby zjhangtian » Sat Dec 31, 2011 2:44 am

反馈一个libnat的BUG
wftpserver用了libnat库做端口映射功能
但是libnat里面有个BUG,当获取到的xml里面ControlURL为空的时候,libnat会崩溃
崩溃在 upnp.c 里面的
/* if the control_url contains the http protocol string,
then don't prepend the base url to it */
if(strncmp(xdescdat.control_url, HTTP_PROTOCOL_STRING,
strlen(HTTP_PROTOCOL_STRING)) == 0) {

xdescdat.control_url 为 NULL
strncmp一执行就崩溃了

所以在路由表有BUG的机器上,端口映射一开,wftpserver就再也起不来了
希望修复一下
zjhangtian
 
posts 2
 
joined Sat Dec 31, 2011 2:43 am

Re: libnat bugs

Postby FTP » Sat Jan 07, 2012 7:43 am

Thanks for your bug report! We will fix it in the next release.
FTP
Site Admin
 
posts 1243
 
joined Tue Sep 29, 2009 6:09 am


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron