diff --git a/CHANGES b/CHANGES index 4758363876..f13c1e0fe3 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,8 @@ +2.5-348 | 2017-11-21 11:30:55 -0600 + + * Fix a nb_dns.c compile error (older OSs) due to C90 vs C99. (Corelight) + 2.5-347 | 2017-11-20 14:00:37 -0600 * Fix and extend behavior of HookLoadFile. (Corelight) diff --git a/VERSION b/VERSION index a074771e18..ad68c02345 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.5-347 +2.5-348 diff --git a/src/nb_dns.c b/src/nb_dns.c index f239b4d401..be6ca66059 100644 --- a/src/nb_dns.c +++ b/src/nb_dns.c @@ -132,7 +132,9 @@ nb_dns_init(char *errstr) return (NULL); } - for ( int i = 0; i < _res.nscount; ++i ) + int i; + + for ( i = 0; i < _res.nscount; ++i ) { nd->server = _res.nsaddr_list[i];