~ubuntu-branches/ubuntu/maverick/postfix/maverick-security

« back to all changes in this revision

Viewing changes to src/util/myaddrinfo.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Wietse Venema, LaMont Jones
  • Date: 2009-06-03 14:17:08 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20090603141708-o9u59xlor7nmd2x1
[Wietse Venema]

* New upstream release: 2.6.2~rc1

[LaMont Jones]

* move postfix-add-{filter,policy} manpages to section 8, and deliver
* provide: default-mta on ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
  * Routines and data structures to hide some of the complexity of the
131
131
  * addrinfo API. They still don't hide that we may get results for address
132
132
  * families that we aren't interested in.
 
133
  * 
 
134
  * Note: the getnameinfo() and inet_ntop() system library functions use unsafe
 
135
  * APIs with separate pointer and length arguments. To avoid buffer overflow
 
136
  * problems with these functions, Postfix uses pointers to structures
 
137
  * internally. This way the compiler can enforce that callers provide
 
138
  * buffers with the appropriate length, instead of having to trust that
 
139
  * callers will never mess up some length calculation.
133
140
  */
134
141
typedef struct {
135
142
    char    buf[MAI_HOSTNAME_STRSIZE];