mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Return 'errno' value from the table_do_modify_record(), it is expected
by table_modify_record(). This makes quiet operations with tables really quiet. PR: 222953 MFC after: 1 week
This commit is contained in:
parent
f92e3400bc
commit
092f8ba32f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324592
|
@ -885,6 +885,8 @@ table_do_modify_record(int cmd, ipfw_obj_header *oh,
|
|||
|
||||
sz += sizeof(*oh);
|
||||
error = do_get3(cmd, &oh->opheader, &sz);
|
||||
if (error != 0)
|
||||
error = errno;
|
||||
tent = (ipfw_obj_tentry *)(ctlv + 1);
|
||||
/* Copy result back to provided buffer */
|
||||
memcpy(tent_base, ctlv + 1, sizeof(*tent) * count);
|
||||
|
|
Loading…
Reference in a new issue