When using the CDG TCP congestion control, setting the sysctl variable net.inet.tcp.cc.cdg.smoothing_factor to 0 should disabled the smoothing. Right now it results in a panic due to a division by zero. This patch fixes this.
This problem was reported in PR 193762.