Index: sbin/ipfw/tables.c =================================================================== --- sbin/ipfw/tables.c (revision 324097) +++ sbin/ipfw/tables.c (working copy) @@ -885,6 +885,8 @@ table_do_modify_record(int cmd, ipfw_obj_header *o 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);