-fix return values, add missing return

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

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

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

git-svn-id: https://gnunet.org/svn/gnunet@34336 140774ce-b5e7-0310-ab8b-a85725594a96
-fix leak, uninit mask

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