<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"># HG changeset patch<br># User Sergey Polovko <<a href="mailto:jamel@yandex-team.ru">jamel@yandex-team.ru</a>><br># Date 1430232559 -10800<br># Tue Apr 28 17:49:19 2015 +0300<br># Node ID e98e249441adc75c525556ca32e9f3e65e87f653<br># Parent 96e22e4f1b03ff15a774c6ed34d74b897af32c55<br>check that last IPv4 octet has valid value<br><br>diff -r 96e22e4f1b03 -r e98e249441ad src/core/ngx_inet.c<br>--- a/src/core/ngx_inet.c Mon Apr 27 18:51:18 2015 +0300<br>+++ b/src/core/ngx_inet.c Tue Apr 28 17:49:19 2015 +0300<br>@@ -48,7 +48,7 @@<br> return INADDR_NONE;<br> }<br><br>- if (n == 3) {<br>+ if (n == 3 && octet <= 255) {<br> addr = (addr << 8) + octet;<br> return htonl(addr);<br> }</body></html>