Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2018 11:09:07 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r330578 - stable/11/sys/netinet/libalias
Message-ID:  <201803071109.w27B97Is043031@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Wed Mar  7 11:09:07 2018
New Revision: 330578
URL: https://svnweb.freebsd.org/changeset/base/330578

Log:
  MFC r327206:
  
  Fix CID 1008428.

Modified:
  stable/11/sys/netinet/libalias/alias_sctp.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/libalias/alias_sctp.c
==============================================================================
--- stable/11/sys/netinet/libalias/alias_sctp.c	Wed Mar  7 11:03:01 2018	(r330577)
+++ stable/11/sys/netinet/libalias/alias_sctp.c	Wed Mar  7 11:09:07 2018	(r330578)
@@ -420,9 +420,9 @@ int sysctl_chg_loglevel(SYSCTL_HANDLER_ARGS)
 	error = sysctl_handle_int(oidp, &level, 0, req);
 	if (error) return (error);
 
-	sysctl_log_level = (level > SN_LOG_DEBUG_MAX)?(SN_LOG_DEBUG_MAX):(level);
-	sysctl_log_level = (level < SN_LOG_LOW)?(SN_LOG_LOW):(level);
-
+	level = (level > SN_LOG_DEBUG_MAX)?(SN_LOG_DEBUG_MAX):(level);
+	level = (level < SN_LOG_LOW)?(SN_LOG_LOW):(level);
+	sysctl_log_level = level;
 	return (0);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803071109.w27B97Is043031>