snortlib: Fix nw_sock handling
snortlib: Fix nw_sock handling

Currently, snortlib cannot receive reconnect request from Snort client
program (e.g. pigrelay.py).
This patch fixes this problem.

Signed-off-by: IWASE Yusuke <bb80e84cc9f5a8f01385872ee89032beb5d4eba7@gmail.com>
Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>

habibiefaried/ryu,takahashiminoru/ryu,StephenKing/summerschool-2015-ryu,umkcdcrg01/ryu_openflow,takahashiminoru/ryu,lsqtongxin/ryu,openvapour/ryu,takahashiminoru/ryu,openvapour/ryu,StephenKing/ryu,habibiefaried/ryu,TakeshiTseng/ryu,John-Lin/ryu,umkcdcrg01/ryu_openflow,Zouyiran/ryu,fujita/ryu,haniehrajabi/ryu,John-Lin/ryu,fkakuma/ryu,fkakuma/ryu,StephenKing/ryu,John-Lin/ryu,darjus-amzn/ryu,elahejalalpour/ELRyu,lsqtongxin/ryu,hisaharu/ryu,openvapour/ryu,zyq001/ryu,gopchandani/ryu,gopchandani/ryu,fujita/ryu,zangree/ryu,Zouyiran/ryu,Tesi-Luca-Davide/ryu,darjus-amzn/ryu,gareging/SDN_Framework,umkcdcrg01/ryu_openflow,diogommartins/ryu,diogommartins/ryu,ttsubo/ryu,habibiefaried/ryu,StephenKing/summerschool-2015-ryu,osrg/ryu,ysywh/ryu,StephenKing/summerschool-2015-ryu,takahashiminoru/ryu,iwaseyusuke/ryu,iwaseyusuke/ryu,darjus-amzn/ryu,jalilm/ryu,Zouyiran/ryu,StephenKing/ryu,haniehrajabi/ryu,jalilm/ryu,pichuang/ryu,shinpeimuraoka/ryu,haniehrajabi/ryu,hisaharu/ryu,iwaseyusuke/ryu,osrg/ryu,gopchandani/ryu,zangree/ryu,shinpeimuraoka/ryu,TakeshiTseng/ryu,gopchandani/ryu,gareging/SDN_Framework,fujita/ryu,Tejas-Subramanya/RYU_MEC,ttsubo/ryu,darjus-amzn/ryu,fujita/ryu,gareging/SDN_Framework,elahejalalpour/ELRyu,yamt/ryu,haniehrajabi/ryu,Tesi-Luca-Davide/ryu,Zouyiran/ryu,habibiefaried/ryu,osrg/ryu,pichuang/ryu,gareging/SDN_Framework,TakeshiTseng/ryu,yamt/ryu,alanquillin/ryu,fkakuma/ryu,StephenKing/summerschool-2015-ryu,hisaharu/ryu,ttsubo/ryu,osrg/ryu,ynkjm/ryu,zangree/ryu,yamt/ryu,John-Lin/ryu,Zouyiran/ryu,alanquillin/ryu,jalilm/ryu,elahejalalpour/ELRyu,lagopus/ryu-lagopus-ext,zangree/ryu,gopchandani/ryu,umkcdcrg01/ryu_openflow,ysywh/ryu,ynkjm/ryu,lagopus/ryu-lagopus-ext,StephenKing/ryu,iwaseyusuke/ryu,fkakuma/ryu,ttsubo/ryu,Tejas-Subramanya/RYU_MEC,ysywh/ryu,takahashiminoru/ryu,ysywh/ryu,OpenState-SDN/ryu,zangree/ryu,OpenState-SDN/ryu,OpenState-SDN/ryu,Tejas-Subramanya/RYU_MEC,haniehrajabi/ryu,diogommartins/ryu,zyq001/ryu,StephenKing/ryu,fkakuma/ryu,jalilm/ryu,zyq001/ryu,osrg/ryu,ynkjm/ryu,OpenState-SDN/ryu,shinpeimuraoka/ryu,TakeshiTseng/ryu,lsqtongxin/ryu,pichuang/ryu,lagopus/ryu-lagopus-ext,shinpeimuraoka/ryu,diogommartins/ryu,Tesi-Luca-Davide/ryu,umkcdcrg01/ryu_openflow,yamt/ryu,shinpeimuraoka/ryu,ttsubo/ryu,darjus-amzn/ryu,pichuang/ryu,iwaseyusuke/ryu,ynkjm/ryu,ysywh/ryu,sivaramakrishnansr/ryu,lagopus/ryu-lagopus-ext,alanquillin/ryu,alanquillin/ryu,lsqtongxin/ryu,zyq001/ryu,Tejas-Subramanya/RYU_MEC,openvapour/ryu,elahejalalpour/ELRyu,lagopus/ryu-lagopus-ext,sivaramakrishnansr/ryu,pichuang/ryu,hisaharu/ryu,Tejas-Subramanya/RYU_MEC,jalilm/ryu,Tesi-Luca-Davide/ryu,Tesi-Luca-Davide/ryu,TakeshiTseng/ryu,John-Lin/ryu,habibiefaried/ryu,elahejalalpour/ELRyu,lsqtongxin/ryu,sivaramakrishnansr/ryu,gareging/SDN_Framework,ynkjm/ryu,diogommartins/ryu,openvapour/ryu,zyq001/ryu,hisaharu/ryu,OpenState-SDN/ryu,alanquillin/ryu,yamt/ryu,sivaramakrishnansr/ryu,StephenKing/summerschool-2015-ryu,sivaramakrishnansr/ryu,fujita/ryu