net: socket: fix for e93d030058684f98894aafb5c4048b2c6d9d479f
net: socket: fix for e93d030058684f98894aafb5c4048b2c6d9d479f

The former fix for socket initialization was broken. This fixes the
"fix" by using the right exit condition for the loops.

herrfz/RIOT-old,khhhh/RIOT,benoit-canet/RIOT,brettswann/RIOT,jhollister/RIOT,mziegert/RIOT,MonsterCode8000/RIOT,thiagohd/RIOT,arvindpdmn/RIOT,jbeyerstedt/RIOT-OTA-update,DipSwitch/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,x3ro/RIOT,gbarnett/RIOT,LudwigKnuepfer/RIOT,ant9000/RIOT,Osblouf/RIOT,1blankz7/RIOT,kbumsik/RIOT,marcosalm/RIOT,shady33/RIOT,1blankz7/RIOT,kYc0o/RIOT,rousselk/RIOT,TobiasFredersdorf/RIOT,openkosmosorg/RIOT,haoyangyu/RIOT,jfischer-phytec-iot/RIOT,binarylemon/RIOT,Ell-i/RIOT,neiljay/RIOT,ThanhVic/RIOT,mfrey/RIOT,Lexandro92/RIOT-CoAP,kaleb-himes/RIOT,jferreir/RIOT,biboc/RIOT,biboc/RIOT,mziegert/RIOT,nsol-nmsu/RIOT,bartfaizoltan/RIOT,FrancescoErmini/RIOT,rfswarm/RIOT,jfischer-phytec-iot/RIOT,haoyangyu/RIOT,binarylemon/RIOT,plushvoxel/RIOT,RubikonAlpha/RIOT,brettswann/RIOT,cladmi/RIOT,latsku/RIOT,changbiao/RIOT,koenning/RIOT,mfrey/RIOT,backenklee/RIOT,sgso/RIOT,avmelnikoff/RIOT,BytesGalore/RIOT,lazytech-org/RIOT,kushalsingh007/RIOT,ximus/RIOT,bartfaizoltan/RIOT,jasonatran/RIOT,jfischer-phytec-iot/RIOT,robixnai/RIOT,dhruvvyas90/RIOT,OlegHahm/RIOT,MohmadAyman/RIOT,herrfz/RIOT,changbiao/RIOT,abp719/RIOT,syin2/RIOT,mziegert/RIOT,d00616/RIOT,benoit-canet/RIOT,cladmi/RIOT,jasonatran/RIOT,stevenj/RIOT,RIOT-OS/RIOT,thiagohd/RIOT,RBartz/RIOT,kerneltask/RIOT,openkosmosorg/RIOT,Yonezawa-T2/RIOT,kaleb-himes/RIOT,JensErdmann/RIOT,binarylemon/RIOT,openkosmosorg/RIOT,kb2ma/RIOT,khhhh/RIOT,kbumsik/RIOT,BytesGalore/RIOT,wentaoshang/RIOT,ant9000/RIOT,mziegert/RIOT,wentaoshang/RIOT,malosek/RIOT,immesys/RiSyn,toonst/RIOT,patkan/RIOT,kushalsingh007/RIOT,rousselk/RIOT,centurysys/RIOT,stevenj/RIOT,msolters/RIOT,thomaseichinger/RIOT,benoit-canet/RIOT,abkam07/RIOT,neumodisch/RIOT,MonsterCode8000/RIOT,ximus/RIOT,sgso/RIOT,lebrush/RIOT,brettswann/RIOT,MonsterCode8000/RIOT,dailab/RIOT,watr-li/RIOT,jfischer-phytec-iot/RIOT,attdona/RIOT,gbarnett/RIOT,beurdouche/RIOT,PSHIVANI/Riot-Code,Darredevil/RIOT,abp719/RIOT,asanka-code/RIOT,rakendrathapa/RIOT,Darredevil/RIOT,yogo1212/RIOT,jbeyerstedt/RIOT-OTA-update,LudwigOrtmann/RIOT,rfswarm/RIOT,attdona/RIOT,yogo1212/RIOT,basilfx/RIOT,dailab/RIOT,bartfaizoltan/RIOT,mfrey/RIOT,fnack/RIOT,khhhh/RIOT,LudwigKnuepfer/RIOT,changbiao/RIOT,arvindpdmn/RIOT,immesys/RiSyn,Hyungsin/RIOT-OS,herrfz/RIOT,ntrtrung/RIOT,thiagohd/RIOT,1blankz7/RIOT,RBartz/RIOT,kaspar030/RIOT,hamilton-mote/RIOT-OS,tfar/RIOT,josephnoir/RIOT,Ell-i/RIOT,kbumsik/RIOT,khhhh/RIOT,kbumsik/RIOT,yogo1212/RIOT,stevenj/RIOT,ant9000/RIOT,Hyungsin/RIOT-OS,miri64/RIOT,rfuentess/RIOT,thiagohd/RIOT,koenning/RIOT,OTAkeys/RIOT,mfrey/RIOT,brettswann/RIOT,chris-wood/RIOT,fnack/RIOT,yogo1212/RIOT,msolters/RIOT,automote/RIOT,FrancescoErmini/RIOT,LudwigOrtmann/RIOT,kYc0o/RIOT,FrancescoErmini/RIOT,OTAkeys/RIOT,Josar/RIOT,latsku/RIOT,kaspar030/RIOT,jremmert-phytec-iot/RIOT,ximus/RIOT,d00616/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,kaspar030/RIOT,abp719/RIOT,lebrush/RIOT,MonsterCode8000/RIOT,arvindpdmn/RIOT,RIOT-OS/RIOT,phiros/RIOT,syin2/RIOT,ThanhVic/RIOT,kaleb-himes/RIOT,watr-li/RIOT,dkm/RIOT,backenklee/RIOT,latsku/RIOT,miri64/RIOT,avmelnikoff/RIOT,neiljay/RIOT,d00616/RIOT,l3nko/RIOT,ThanhVic/RIOT,herrfz/RIOT-old,luciotorre/RIOT,jhollister/RIOT,luciotorre/RIOT,A-Paul/RIOT,abp719/RIOT,ks156/RIOT,centurysys/RIOT,biboc/RIOT,watr-li/RIOT,openkosmosorg/RIOT,plushvoxel/RIOT,authmillenon/RIOT,chris-wood/RIOT,l3nko/RIOT,OlegHahm/RIOT,automote/RIOT,rfswarm2/RIOT,mtausig/RIOT,sumanpanchal/RIOT,stevenj/RIOT,LudwigKnuepfer/RIOT,Hyungsin/RIOT-OS,luciotorre/RIOT,phiros/RIOT,LudwigKnuepfer/RIOT,abkam07/RIOT,l3nko/RIOT,TobiasFredersdorf/RIOT,wentaoshang/RIOT,tdautc19841202/RIOT,msolters/RIOT,lazytech-org/RIOT,jremmert-phytec-iot/RIOT,Lexandro92/RIOT-CoAP,dhruvvyas90/RIOT,kushalsingh007/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,adrianghc/RIOT,RubikonAlpha/RIOT,neiljay/RIOT,syin2/RIOT,MarkXYang/RIOT,kushalsingh007/RIOT,thomaseichinger/RIOT,stevenj/RIOT,MarkXYang/RIOT,hamilton-mote/RIOT-OS,fnack/RIOT,centurysys/RIOT,sumanpanchal/RIOT,wentaoshang/RIOT,AnonMall/RIOT,alignan/RIOT,latsku/RIOT,Yonezawa-T2/RIOT,katezilla/RIOT,AnonMall/RIOT,basilfx/RIOT,RubikonAlpha/RIOT,mtausig/RIOT,EmuxEvans/RIOT,shady33/RIOT,arvindpdmn/RIOT,AnonMall/RIOT,ntrtrung/RIOT,kaspar030/RIOT,authmillenon/RIOT,herrfz/RIOT,sgso/RIOT,chris-wood/RIOT,kerneltask/RIOT,cladmi/RIOT,neumodisch/RIOT,ThanhVic/RIOT,adjih/RIOT,ntrtrung/RIOT,1blankz7/RIOT,gautric/RIOT,plushvoxel/RIOT,mziegert/RIOT,ks156/RIOT,Osblouf/RIOT,sgso/RIOT,alignan/RIOT,robixnai/RIOT,LudwigOrtmann/RIOT,arvindpdmn/RIOT,fnack/RIOT,aeneby/RIOT,DipSwitch/RIOT,Darredevil/RIOT,alignan/RIOT,avmelnikoff/RIOT,centurysys/RIOT,zhuoshuguo/RIOT,rakendrathapa/RIOT,abkam07/RIOT,rfswarm/RIOT,rakendrathapa/RIOT,jremmert-phytec-iot/RIOT,ximus/RIOT,centurysys/RIOT,FrancescoErmini/RIOT,altairpearl/RIOT,yogo1212/RIOT,EmuxEvans/RIOT,haoyangyu/RIOT,josephnoir/RIOT,toonst/RIOT,lebrush/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,benoit-canet/RIOT,Yonezawa-T2/RIOT,ks156/RIOT,malosek/RIOT,sumanpanchal/RIOT,herrfz/RIOT-old,rajma996/RIOT,patkan/RIOT,dkm/RIOT,Osblouf/RIOT,alex1818/RIOT,adjih/RIOT,ntrtrung/RIOT,BytesGalore/RIOT,watr-li/RIOT,Josar/RIOT,adrianghc/RIOT,changbiao/RIOT,1blankz7/RIOT,jbeyerstedt/RIOT-OTA-update,RBartz/RIOT,sumanpanchal/RIOT,herrfz/RIOT-old,tdautc19841202/RIOT,RubikonAlpha/RIOT,RBartz/RIOT,FrancescoErmini/RIOT,gbarnett/RIOT,kerneltask/RIOT,daniel-k/RIOT,neiljay/RIOT,attdona/RIOT,ThanhVic/RIOT,kb2ma/RIOT,FrancescoErmini/RIOT,koenning/RIOT,katezilla/RIOT,marcosalm/RIOT,RubikonAlpha/RIOT,A-Paul/RIOT,koenning/RIOT,JensErdmann/RIOT,ks156/RIOT,adjih/RIOT,altairpearl/RIOT,aeneby/RIOT,dailab/RIOT,l3nko/RIOT,gbarnett/RIOT,aeneby/RIOT,RubikonAlpha/RIOT,automote/RIOT,kerneltask/RIOT,watr-li/RIOT,immesys/RiSyn,daniel-k/RIOT,Ell-i/RIOT,automote/RIOT,MarkXYang/RIOT,miri64/RIOT,dailab/RIOT,katezilla/RIOT,JensErdmann/RIOT,rfswarm/RIOT,kYc0o/RIOT,wentaoshang/RIOT,neumodisch/RIOT,basilfx/RIOT,RBartz/RIOT,roberthartung/RIOT,EmuxEvans/RIOT,immesys/RiSyn,JensErdmann/RIOT,zhuoshuguo/RIOT,rousselk/RIOT,backenklee/RIOT,alignan/RIOT,PSHIVANI/Riot-Code,robixnai/RIOT,Osblouf/RIOT,asanka-code/RIOT,EmuxEvans/RIOT,altairpearl/RIOT,gebart/RIOT,MohmadAyman/RIOT,zhuoshuguo/RIOT,d00616/RIOT,JensErdmann/RIOT,openkosmosorg/RIOT,josephnoir/RIOT,openkosmosorg/RIOT,JensErdmann/RIOT,Osblouf/RIOT,MarkXYang/RIOT,smlng/RIOT,TobiasFredersdorf/RIOT,daniel-k/RIOT,LudwigOrtmann/RIOT,gautric/RIOT,DipSwitch/RIOT,phiros/RIOT,altairpearl/RIOT,MonsterCode8000/RIOT,kb2ma/RIOT,shady33/RIOT,shady33/RIOT,TobiasFredersdorf/RIOT,haoyangyu/RIOT,beurdouche/RIOT,changbiao/RIOT,josephnoir/RIOT,alex1818/RIOT,roberthartung/RIOT,dhruvvyas90/RIOT,hamilton-mote/RIOT-OS,Osblouf/RIOT,chris-wood/RIOT,miri64/RIOT,asanka-code/RIOT,rfswarm2/RIOT,neumodisch/RIOT,marcosalm/RIOT,katezilla/RIOT,herrfz/RIOT,mfrey/RIOT,thomaseichinger/RIOT,A-Paul/RIOT,kb2ma/RIOT,A-Paul/RIOT,kerneltask/RIOT,PSHIVANI/Riot-Code,EmuxEvans/RIOT,alignan/RIOT,aeneby/RIOT,ant9000/RIOT,malosek/RIOT,patkan/RIOT,herrfz/RIOT,EmuxEvans/RIOT,avmelnikoff/RIOT,chris-wood/RIOT,tfar/RIOT,rfswarm2/RIOT,1blankz7/RIOT,latsku/RIOT,watr-li/RIOT,rakendrathapa/RIOT,brettswann/RIOT,asanka-code/RIOT,gebart/RIOT,tdautc19841202/RIOT,arvindpdmn/RIOT,plushvoxel/RIOT,toonst/RIOT,malosek/RIOT,dkm/RIOT,jhollister/RIOT,x3ro/RIOT,roberthartung/RIOT,dhruvvyas90/RIOT,malosek/RIOT,kushalsingh007/RIOT,authmillenon/RIOT,MonsterCode8000/RIOT,beurdouche/RIOT,msolters/RIOT,x3ro/RIOT,dkm/RIOT,luciotorre/RIOT,mtausig/RIOT,miri64/RIOT,gbarnett/RIOT,robixnai/RIOT,latsku/RIOT,MohmadAyman/RIOT,phiros/RIOT,biboc/RIOT,MohmadAyman/RIOT,mziegert/RIOT,neumodisch/RIOT,rousselk/RIOT,Hyungsin/RIOT-OS,backenklee/RIOT,jasonatran/RIOT,jferreir/RIOT,dhruvvyas90/RIOT,lebrush/RIOT,dkm/RIOT,altairpearl/RIOT,gebart/RIOT,thiagohd/RIOT,biboc/RIOT,syin2/RIOT,attdona/RIOT,koenning/RIOT,roberthartung/RIOT,brettswann/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,RIOT-OS/RIOT,beurdouche/RIOT,tfar/RIOT,tdautc19841202/RIOT,abp719/RIOT,daniel-k/RIOT,zhuoshuguo/RIOT,daniel-k/RIOT,OlegHahm/RIOT,khhhh/RIOT,BytesGalore/RIOT,jbeyerstedt/RIOT-OTA-update,automote/RIOT,gautric/RIOT,Darredevil/RIOT,thomaseichinger/RIOT,ximus/RIOT,jferreir/RIOT,d00616/RIOT,tfar/RIOT,kYc0o/RIOT,RIOT-OS/RIOT,nsol-nmsu/RIOT,AnonMall/RIOT,kushalsingh007/RIOT,jbeyerstedt/RIOT-OTA-update,Yonezawa-T2/RIOT,jferreir/RIOT,sumanpanchal/RIOT,patkan/RIOT,tdautc19841202/RIOT,abkam07/RIOT,jasonatran/RIOT,rakendrathapa/RIOT,ntrtrung/RIOT,stevenj/RIOT,PSHIVANI/Riot-Code,patkan/RIOT,authmillenon/RIOT,x3ro/RIOT,katezilla/RIOT,jhollister/RIOT,alex1818/RIOT,phiros/RIOT,beurdouche/RIOT,rfswarm/RIOT,Ell-i/RIOT,MohmadAyman/RIOT,attdona/RIOT,gebart/RIOT,Josar/RIOT,marcosalm/RIOT,gbarnett/RIOT,rakendrathapa/RIOT,marcosalm/RIOT,abkam07/RIOT,Josar/RIOT,nsol-nmsu/RIOT,sumanpanchal/RIOT,neumodisch/RIOT,zhuoshuguo/RIOT,rfuentess/RIOT,aeneby/RIOT,rfuentess/RIOT,lazytech-org/RIOT,rfswarm/RIOT,OTAkeys/RIOT,haoyangyu/RIOT,luciotorre/RIOT,binarylemon/RIOT,alex1818/RIOT,syin2/RIOT,Josar/RIOT,daniel-k/RIOT,automote/RIOT,asanka-code/RIOT,robixnai/RIOT,smlng/RIOT,adrianghc/RIOT,rfswarm2/RIOT,rfswarm2/RIOT,authmillenon/RIOT,rfuentess/RIOT,Lexandro92/RIOT-CoAP,PSHIVANI/Riot-Code,alex1818/RIOT,gautric/RIOT,OlegHahm/RIOT,robixnai/RIOT,fnack/RIOT,binarylemon/RIOT,OlegHahm/RIOT,Ell-i/RIOT,A-Paul/RIOT,sgso/RIOT,fnack/RIOT,rajma996/RIOT,phiros/RIOT,abp719/RIOT,OTAkeys/RIOT,mtausig/RIOT,Lexandro92/RIOT-CoAP,kaspar030/RIOT,malosek/RIOT,d00616/RIOT,patkan/RIOT,hamilton-mote/RIOT-OS,thiagohd/RIOT,basilfx/RIOT,bartfaizoltan/RIOT,kaleb-himes/RIOT,changbiao/RIOT,tdautc19841202/RIOT,avmelnikoff/RIOT,Yonezawa-T2/RIOT,zhuoshuguo/RIOT,LudwigOrtmann/RIOT,dailab/RIOT,Lexandro92/RIOT-CoAP,rajma996/RIOT,authmillenon/RIOT,rajma996/RIOT,MarkXYang/RIOT,asanka-code/RIOT,Darredevil/RIOT,dhruvvyas90/RIOT,rousselk/RIOT,MohmadAyman/RIOT,l3nko/RIOT,jferreir/RIOT,DipSwitch/RIOT,rfswarm2/RIOT,Darredevil/RIOT,altairpearl/RIOT,Lexandro92/RIOT-CoAP,shady33/RIOT,kbumsik/RIOT,adjih/RIOT,tfar/RIOT,OTAkeys/RIOT,kaleb-himes/RIOT,kb2ma/RIOT,binarylemon/RIOT,yogo1212/RIOT,gebart/RIOT,neiljay/RIOT,smlng/RIOT,herrfz/RIOT,koenning/RIOT,toonst/RIOT,attdona/RIOT,rfuentess/RIOT,MarkXYang/RIOT,Yonezawa-T2/RIOT,bartfaizoltan/RIOT,TobiasFredersdorf/RIOT,rajma996/RIOT,josephnoir/RIOT,DipSwitch/RIOT,ant9000/RIOT,AnonMall/RIOT,khhhh/RIOT,LudwigOrtmann/RIOT,abkam07/RIOT,chris-wood/RIOT,immesys/RiSyn,gautric/RIOT,rajma996/RIOT,nsol-nmsu/RIOT,nsol-nmsu/RIOT,jferreir/RIOT,sgso/RIOT,jasonatran/RIOT,lazytech-org/RIOT,adrianghc/RIOT,plushvoxel/RIOT,toonst/RIOT,jhollister/RIOT,roberthartung/RIOT,x3ro/RIOT,rousselk/RIOT,ThanhVic/RIOT,smlng/RIOT,mtausig/RIOT,ks156/RIOT,jfischer-phytec-iot/RIOT,msolters/RIOT,benoit-canet/RIOT,LudwigKnuepfer/RIOT,ntrtrung/RIOT,AnonMall/RIOT,RBartz/RIOT,Hyungsin/RIOT-OS,luciotorre/RIOT,lebrush/RIOT,lebrush/RIOT,hamilton-mote/RIOT-OS,haoyangyu/RIOT,wentaoshang/RIOT,smlng/RIOT,alex1818/RIOT,benoit-canet/RIOT,shady33/RIOT,thomaseichinger/RIOT,cladmi/RIOT,basilfx/RIOT,marcosalm/RIOT,ximus/RIOT,jremmert-phytec-iot/RIOT,cladmi/RIOT,DipSwitch/RIOT,immesys/RiSyn,jremmert-phytec-iot/RIOT,bartfaizoltan/RIOT,l3nko/RIOT,lazytech-org/RIOT,backenklee/RIOT,herrfz/RIOT-old,jhollister/RIOT,adrianghc/RIOT,kYc0o/RIOT,centurysys/RIOT,msolters/RIOT,jremmert-phytec-iot/RIOT,BytesGalore/RIOT,RIOT-OS/RIOT,PSHIVANI/Riot-Code,adjih/RIOT