it would be better to use 'sizeof(*req)' instead of hard-coding the type of req.