ipfilter: Save a word of stack space
Rather than save the return code into an intermediate variable, which BTW is optimized out anyway, explicitly remove the return code from the stack. MFC after: 3 days
This commit is contained in:
parent
7ef45bd3cf
commit
b7f127b6e5
@ -1258,15 +1258,13 @@ ipf_p_ftp_valid(softf, ftp, side, buf, len)
|
||||
size_t len;
|
||||
{
|
||||
ftpside_t *ftps;
|
||||
int ret;
|
||||
|
||||
ftps = &ftp->ftp_side[side];
|
||||
|
||||
if (side == 0)
|
||||
ret = ipf_p_ftp_client_valid(softf, ftps, buf, len);
|
||||
return(ipf_p_ftp_client_valid(softf, ftps, buf, len));
|
||||
else
|
||||
ret = ipf_p_ftp_server_valid(softf, ftps, buf, len);
|
||||
return ret;
|
||||
return(ipf_p_ftp_server_valid(softf, ftps, buf, len));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user