Add some error protection code. Now Robin's program doesn't crash anymore, but nicely reports errors.
Add some error protection code. Now Robin's program doesn't crash anymore,
but nicely reports errors.

sdd330/sctp-refimpl,sdd330/sctp-refimpl,sdd330/sctp-refimpl,timsuchanek/sctp-refimpl,xwhuang/sctp-refimpl,TopPano/sctp-refimpl,gale320/sctp-refimpl,sdd330/sctp-refimpl,sctplab/sctp-refimpl,sctplab/sctp-refimpl,tosakanth/sctp-refimpl,TopPano/sctp-refimpl,sctplab/sctp-refimpl,timsuchanek/sctp-refimpl,tosakanth/sctp-refimpl,tosakanth/sctp-refimpl,deepak899/sctp-refimpl,deepak899/sctp-refimpl,gale320/sctp-refimpl,TopPano/sctp-refimpl,sdd330/sctp-refimpl,tosakanth/sctp-refimpl,tosakanth/sctp-refimpl,TopPano/sctp-refimpl,tosakanth/sctp-refimpl,timsuchanek/sctp-refimpl,gale320/sctp-refimpl,xwhuang/sctp-refimpl,deepak899/sctp-refimpl,gale320/sctp-refimpl,timsuchanek/sctp-refimpl,sctplab/sctp-refimpl,tosakanth/sctp-refimpl,tosakanth/sctp-refimpl,sdd330/sctp-refimpl,deepak899/sctp-refimpl,timsuchanek/sctp-refimpl,sdd330/sctp-refimpl,deepak899/sctp-refimpl,sdd330/sctp-refimpl,xwhuang/sctp-refimpl,xwhuang/sctp-refimpl,gale320/sctp-refimpl,gale320/sctp-refimpl,timsuchanek/sctp-refimpl,tosakanth/sctp-refimpl,timsuchanek/sctp-refimpl,TopPano/sctp-refimpl,deepak899/sctp-refimpl,sctplab/sctp-refimpl,gale320/sctp-refimpl,gale320/sctp-refimpl,timsuchanek/sctp-refimpl,TopPano/sctp-refimpl,TopPano/sctp-refimpl,xwhuang/sctp-refimpl,sdd330/sctp-refimpl,TopPano/sctp-refimpl,timsuchanek/sctp-refimpl,sctplab/sctp-refimpl,gale320/sctp-refimpl,TopPano/sctp-refimpl,xwhuang/sctp-refimpl