Only clear sockbuf if it's been allocated
Merge branch 'master' of github.com:ckolivas/cgminer