free request fields
memset everything after malloc
use memset and strncat instead of strncpy