Fix a NULL pointer dereference with traffic stats
Fix a NULL pointer dereference with traffic stats

When something requested traffic statistics while there was an unauthenticated
connection to ZNC, there was a NULL pointer dereference. Fix this by making the
code saner and removing all NULL pointer dereferences. ;)

Thanks to various people who reported this. A special thank you goes to Woet who
helped debugging this.


git-svn-id: 3ad904ec35b89a071badd9cb0113dfe58093e920@2026 726aef4b-f618-498e-8847-2d620e286838

Kriechi/znc,jantman/znc,psychon/znc,withinsoft/znc,TuffLuck/znc,Mikaela/znc,dgw/znc,aarondunlap/znc,znc/znc,TuffLuck/znc,ollie27/znc,BtbN/znc,GLolol/znc,elyscape/znc,jpnurmi/znc,GLolol/znc,KielBNC/znc,Phansa/znc,GLolol/znc,markusj/znc,BtbN/znc,KielBNC/znc,Zarthus/znc,Mkaysi/znc,badloop/znc,elyscape/znc,Mkaysi/znc,Mikaela/znc,jreese/znc,TuffLuck/znc,wolfy1339/znc,dgw/znc,anthonyryan1/znc,withinsoft/znc,aarondunlap/znc,psychon/znc,BtbN/znc,badloop/znc,GLolol/znc,badloop/znc,TuffLuck/znc,anthonyryan1/znc,ollie27/znc,wolfy1339/znc,withinsoft/znc,jantman/znc,ollie27/znc,jreese/znc,aarondunlap/znc,TuffLuck/znc,elyscape/znc,anthonyryan1/znc,Kriechi/nobnc,psychon/znc,kashike/znc,jantman/znc,KiNgMaR/znc,dgw/znc,TingPing/znc,jreese/znc,YourBNC/znc,reedloden/znc,wolfy1339/znc,DarthGandalf/znc,Hasimir/znc,Phansa/znc,trisk/znc,reedloden/znc,aarondunlap/znc,wolfy1339/znc,Kriechi/znc,evilnet/znc,KielBNC/znc,aarondunlap/znc,BtbN/znc,jpnurmi/znc,BtbN/znc,KielBNC/znc,Mikaela/znc,wolfy1339/znc,Hasimir/znc,Adam-/znc,elyscape/znc,evilnet/znc,YourBNC/znc,Kriechi/znc,Adam-/znc,Hasimir/znc,kashike/znc,reedloden/znc,trisk/znc,badloop/znc,ollie27/znc,evilnet/znc,jpnurmi/znc,KiNgMaR/znc,KiNgMaR/znc,kashike/znc,psychon/znc,Mikaela/znc,jpnurmi/znc,znc/znc,dgw/znc,markusj/znc,YourBNC/znc,jantman/znc,BtbN/znc,dgw/znc,Phansa/znc,TingPing/znc,znc/znc,Zarthus/znc,znc/znc,KielBNC/znc,markusj/znc,DarthGandalf/znc,jpnurmi/znc,aarondunlap/znc,evilnet/znc,Mkaysi/znc,znc/znc,Mikaela/znc,YourBNC/znc,TingPing/znc,elyscape/znc,psychon/znc,Kriechi/nobnc,withinsoft/znc,markusj/znc,Zarthus/znc,Kriechi/znc,KiNgMaR/znc,Mikaela/znc,trisk/znc,Zarthus/znc,Kriechi/znc,jpnurmi/znc,Mkaysi/znc,Hasimir/znc,ollie27/znc,TingPing/znc,markusj/znc,Zarthus/znc,jreese/znc,TingPing/znc,Mkaysi/znc,TuffLuck/znc,YourBNC/znc,Kriechi/nobnc,KielBNC/znc,Mkaysi/znc,Hasimir/znc,aarondunlap/znc,trisk/znc,wolfy1339/znc,Adam-/znc,withinsoft/znc,DarthGandalf/znc,Zarthus/znc,reedloden/znc,withinsoft/znc,Kriechi/znc,Adam-/znc,anthonyryan1/znc,Hasimir/znc,Adam-/znc,TuffLuck/znc,Hasimir/znc,anthonyryan1/znc,elyscape/znc,kashike/znc,dgw/znc,jreese/znc,kashike/znc,Mkaysi/znc,DarthGandalf/znc,Phansa/znc,KiNgMaR/znc,reedloden/znc,Mikaela/znc,znc/znc,badloop/znc,psychon/znc,trisk/znc,anthonyryan1/znc,badloop/znc,jantman/znc,Adam-/znc,DarthGandalf/znc,Phansa/znc,reedloden/znc,GLolol/znc,anthonyryan1/znc,YourBNC/znc,evilnet/znc,evilnet/znc,kashike/znc,badloop/znc,jantman/znc,markusj/znc,trisk/znc,jpnurmi/znc,GLolol/znc,DarthGandalf/znc,ollie27/znc,Phansa/znc,Adam-/znc,TingPing/znc,KiNgMaR/znc,jreese/znc