~ubuntu-branches/ubuntu/saucy/postfix/saucy

« back to all changes in this revision

Viewing changes to src/smtpd/smtpd_peer.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2011-02-22 11:20:43 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222112043-c34ht219w3ybrilr
Tags: 2.8.0-2
* a little more lintian cleanup
* Fix missing format strings in smtp-sink.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
#include <myaddrinfo.h>
114
114
#include <sock_addr.h>
115
115
#include <inet_proto.h>
 
116
#include <split_at.h>
116
117
 
117
118
/* Global library. */
118
119
 
225
226
        state->port = mystrdup(client_port.buf);
226
227
 
227
228
        /*
 
229
         * XXX Strip off the IPv6 datalink suffix to avoid false alarms with
 
230
         * strict address syntax checks.
 
231
         */
 
232
#ifdef HAS_IPV6
 
233
        (void) split_at(client_addr.buf, '%');
 
234
#endif
 
235
 
 
236
        /*
228
237
         * We convert IPv4-in-IPv6 address to 'true' IPv4 address early on,
229
238
         * but only if IPv4 support is enabled (why would anyone want to turn
230
239
         * it off)? With IPv4 support enabled we have no need for the IPv6