forked from pool/courier-imap
9347f5698c
- update to 5.0.10 * tcpd/starttls.c (dossl): Start client after negotiating SSL, in order to allow EXTERNAL client certificate authentication. * Fix virtual IP and hostname handling when using GnuTLS for SSL. * imap, pop3: include remote port TCP port number together with the IP address, in log messages. - add courier-imap-stdc.patch to remove 'for' loop initial declarations OBS-URL: https://build.opensuse.org/request/show/811836 OBS-URL: https://build.opensuse.org/package/show/server:mail/courier-imap?expand=0&rev=89
40 lines
955 B
Diff
40 lines
955 B
Diff
Index: libs/rfc1035/rfc1035udp.c
|
|
===================================================================
|
|
--- libs/rfc1035/rfc1035udp.c.orig
|
|
+++ libs/rfc1035/rfc1035udp.c
|
|
@@ -69,13 +69,15 @@
|
|
const unsigned *querylens,
|
|
int n_queries)
|
|
{
|
|
+ int n;
|
|
+
|
|
struct rfc1035_udp_query_responses *resps =
|
|
rfc1035_udp_query_response_alloc_common(n_queries);
|
|
|
|
if (!resps)
|
|
return 0;
|
|
|
|
- for (int n=0; n<n_queries; ++n)
|
|
+ for (n=0; n<n_queries; ++n)
|
|
{
|
|
resps->queries[n].query=queries[n];
|
|
resps->queries[n].querylen=querylens[n];
|
|
@@ -89,6 +91,8 @@
|
|
rfc1035_udp_query_response_alloc_bis(struct querybuf *queries,
|
|
int n_queries)
|
|
{
|
|
+ int n;
|
|
+
|
|
struct rfc1035_udp_query_responses *resps =
|
|
rfc1035_udp_query_response_alloc_common(n_queries);
|
|
|
|
@@ -96,7 +100,7 @@
|
|
return 0;
|
|
|
|
|
|
- for (int n=0; n<n_queries; ++n)
|
|
+ for (n=0; n<n_queries; ++n)
|
|
{
|
|
resps->queries[n].query=queries[n].qbuf;
|
|
resps->queries[n].querylen=queries[n].qbuflen;
|