svn commit: r324791 - stable/11/sbin/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Fri Oct 20 07:42:01 UTC 2017


Author: ae
Date: Fri Oct 20 07:42:00 2017
New Revision: 324791
URL: https://svnweb.freebsd.org/changeset/base/324791

Log:
  MFC r324592:
    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

Modified:
  stable/11/sbin/ipfw/tables.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/ipfw/tables.c
==============================================================================
--- stable/11/sbin/ipfw/tables.c	Fri Oct 20 07:40:11 2017	(r324790)
+++ stable/11/sbin/ipfw/tables.c	Fri Oct 20 07:42:00 2017	(r324791)
@@ -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);


More information about the svn-src-stable mailing list