core/msg: set m->sender_pid before it is used
core/msg: set m->sender_pid before it is used

fixes `msg_send_to_self` condition

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