Fixed the overflow problems reported in issue 3350

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