Resend message: reset security flags as well (fixes #131)

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>