bgp: fix connect timeout error
bgp: fix connect timeout error

RROR 2014-04-23 11:54:59,239 hub 58 hub: uncaught exception: Traceback (most recent c\
all last):
  File "/Users/fujita/git/ryu/ryu/lib/hub.py", line 50, in _launch
    func(*args, **kwargs)
  File "/Users/fujita/git/ryu/ryu/services/protocols/bgp/base.py", line 239, in start
    self._run(*args, **kwargs)
  File "/Users/fujita/git/ryu/ryu/services/protocols/bgp/peer.py", line 448, in _run
    self._connect_loop(client_factory)
  File "/Users/fujita/git/ryu/ryu/services/protocols/bgp/peer.py", line 820, in _conne\
ct_loop
    bind_address=bind_addr)
  File "/Users/fujita/git/ryu/ryu/services/protocols/bgp/base.py", line 354, in _conne\
ct_tcp
    return sock
UnboundLocalError: local variable 'sock' referenced before assignment

Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>

lagopus/ryu-lagopus-ext,darjus-amzn/ryu,hisaharu/ryu,diogommartins/ryu,yamt/ryu,umkcdcrg01/ryu_openflow,openvapour/ryu,osrg/ryu,fkakuma/ryu,StephenKing/summerschool-2015-ryu,takahashiminoru/ryu,fujita/ryu,ysywh/ryu,ysywh/ryu,jkoelker/ryu,hisaharu/ryu,umkcdcrg01/ryu_openflow,Tejas-Subramanya/RYU_MEC,lsqtongxin/ryu,gopchandani/ryu,hisaharu/ryu,Tesi-Luca-Davide/ryu,habibiefaried/ryu,TakeshiTseng/ryu,ntts-clo/mld-ryu,jalilm/ryu,elahejalalpour/ELRyu,ynkjm/ryu,StephenKing/ryu,sivaramakrishnansr/ryu,o3project/ryu-oe,zangree/ryu,iwaseyusuke/ryu,Tesi-Luca-Davide/ryu,shinpeimuraoka/ryu,John-Lin/ryu,diogommartins/ryu,habibiefaried/ryu,ysywh/ryu,umkcdcrg01/ryu_openflow,diogommartins/ryu,lsqtongxin/ryu,diogommartins/ryu,alyosha1879/ryu,umkcdcrg01/ryu_openflow,Zouyiran/ryu,ntts-clo/ryu,gareging/SDN_Framework,jalilm/ryu,StephenKing/ryu,ttsubo/ryu,Tejas-Subramanya/RYU_MEC,lsqtongxin/ryu,sivaramakrishnansr/ryu,osrg/ryu,zangree/ryu,StephenKing/summerschool-2015-ryu,ysywh/ryu,jkoelker/ryu,zyq001/ryu,shinpeimuraoka/ryu,castroflavio/ryu,elahejalalpour/ELRyu,OpenState-SDN/ryu,gareging/SDN_Framework,Zouyiran/ryu,OpenState-SDN/ryu,jalilm/ryu,muzixing/ryu,fkakuma/ryu,ynkjm/ryu,gareging/SDN_Framework,Tejas-Subramanya/RYU_MEC,elahejalalpour/ELRyu,haniehrajabi/ryu,openvapour/ryu,shinpeimuraoka/ryu,John-Lin/ryu,lsqtongxin/ryu,elahejalalpour/ELRyu,openvapour/ryu,alyosha1879/ryu,StephenKing/summerschool-2015-ryu,takahashiminoru/ryu,sivaramakrishnansr/ryu,takahashiminoru/ryu,StephenKing/summerschool-2015-ryu,osrg/ryu,haniehrajabi/ryu,Zouyiran/ryu,jkoelker/ryu,John-Lin/ryu,pichuang/ryu,umkcdcrg01/ryu_openflow,haniehrajabi/ryu,lzppp/mylearning,fujita/ryu,evanscottgray/ryu,StephenKing/ryu,TakeshiTseng/ryu,torufuru/oolhackathon,OpenState-SDN/ryu,pichuang/ryu,torufuru/oolhackathon,ntts-clo/ryu,lagopus/ryu-lagopus-ext,lagopus/ryu-lagopus-ext,fujita/ryu,gopchandani/ryu,ynkjm/ryu,hisaharu/ryu,Tesi-Luca-Davide/ryu,castroflavio/ryu,sivaramakrishnansr/ryu,jalilm/ryu,alanquillin/ryu,alyosha1879/ryu,gopchandani/ryu,zyq001/ryu,darjus-amzn/ryu,openvapour/ryu,muzixing/ryu,yamt/ryu,o3project/ryu-oe,yamt/ryu,pichuang/ryu,Tesi-Luca-Davide/ryu,OpenState-SDN/ryu,sivaramakrishnansr/ryu,Zouyiran/ryu,hisaharu/ryu,Tejas-Subramanya/RYU_MEC,gareging/SDN_Framework,shinpeimuraoka/ryu,gopchandani/ryu,ynkjm/ryu,pichuang/ryu,TakeshiTseng/ryu,castroflavio/ryu,ttsubo/ryu,habibiefaried/ryu,iwaseyusuke/ryu,lzppp/mylearning,alanquillin/ryu,jalilm/ryu,fujita/ryu,muzixing/ryu,darjus-amzn/ryu,jazzmes/ryu,ttsubo/ryu,haniehrajabi/ryu,jazzmes/ryu,John-Lin/ryu,TakeshiTseng/ryu,ttsubo/ryu,jazzmes/ryu,lagopus/ryu-lagopus-ext,darjus-amzn/ryu,zyq001/ryu,lzppp/mylearning,lagopus/ryu-lagopus-ext,StephenKing/summerschool-2015-ryu,fkakuma/ryu,muzixing/ryu,diogommartins/ryu,habibiefaried/ryu,StephenKing/ryu,Tesi-Luca-Davide/ryu,osrg/ryu,zangree/ryu,alyosha1879/ryu,takahashiminoru/ryu,zyq001/ryu,alanquillin/ryu,torufuru/oolhackathon,Tejas-Subramanya/RYU_MEC,ttsubo/ryu,zyq001/ryu,iwaseyusuke/ryu,habibiefaried/ryu,muzixing/ryu,alanquillin/ryu,takahashiminoru/ryu,zangree/ryu,fkakuma/ryu,openvapour/ryu,zangree/ryu,gareging/SDN_Framework,iwaseyusuke/ryu,gopchandani/ryu,darjus-amzn/ryu,ynkjm/ryu,lsqtongxin/ryu,shinpeimuraoka/ryu,evanscottgray/ryu,lzppp/mylearning,ysywh/ryu,elahejalalpour/ELRyu,lzppp/mylearning,pichuang/ryu,fkakuma/ryu,John-Lin/ryu,TakeshiTseng/ryu,yamt/ryu,yamt/ryu,ntts-clo/mld-ryu,OpenState-SDN/ryu,haniehrajabi/ryu,iwaseyusuke/ryu,Zouyiran/ryu,fujita/ryu,StephenKing/ryu,osrg/ryu,evanscottgray/ryu,alanquillin/ryu