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);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to