Author: tuexen
Date: Sun Apr  8 16:29:24 2018
New Revision: 332284
URL: https://svnweb.freebsd.org/changeset/base/332284

Log:
  Fix an assignment to force the level to be in the required interval.
  
  CID:          1008428

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

Modified: stable/10/sys/netinet/libalias/alias_sctp.c
==============================================================================
--- stable/10/sys/netinet/libalias/alias_sctp.c Sun Apr  8 16:26:16 2018        
(r332283)
+++ stable/10/sys/netinet/libalias/alias_sctp.c Sun Apr  8 16:29:24 2018        
(r332284)
@@ -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);
 }
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to