-fix leak

git-svn-id: https://gnunet.org/svn/gnunet@34488 140774ce-b5e7-0310-ab8b-a85725594a96
-check return value

git-svn-id: https://gnunet.org/svn/gnunet@34489 140774ce-b5e7-0310-ab8b-a85725594a96
-fix some of the obvious issues

git-svn-id: https://gnunet.org/svn/gnunet@34490 140774ce-b5e7-0310-ab8b-a85725594a96
-bad NBO conversion

git-svn-id: https://gnunet.org/svn/gnunet@34491 140774ce-b5e7-0310-ab8b-a85725594a96
-more SP fixes and todos

git-svn-id: https://gnunet.org/svn/gnunet@34492 140774ce-b5e7-0310-ab8b-a85725594a96