Fix ipv6 tmp connection

Big bug fixed that was causing the main stack to be trashed by up to 16 bytes.

Due to some (bad) luck, the problem was only revealed by smews_test on intel 32 bits linux target. However, it may cause problems on other targets