Check pSelf->pAddr is not NULL before setup pAddr pointer
Merge pull request #863 from raven02/patch-6

Check pSelf->pAddr is not NULL before setup pAddr pointer