~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to lib/hostip4.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-02-08 11:20:41 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080208112041-hed7sb5r6ghmjf8v
Tags: upstream-7.18.0
ImportĀ upstreamĀ versionĀ 7.18.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: hostip4.c,v 1.41 2007-07-11 21:47:31 gknauf Exp $
 
21
 * $Id: hostip4.c,v 1.42 2007-11-07 09:21:35 bagder Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
#include "setup.h"
289
289
#else
290
290
    h = gethostbyname(hostname);
291
291
#endif
292
 
    if (!h)
 
292
    if(!h)
293
293
      infof(conn->data, "gethostbyname(2) failed for %s\n", hostname);
294
294
#endif /*HAVE_GETHOSTBYNAME_R */
295
295
  }
297
297
  if(h) {
298
298
    ai = Curl_he2ai(h, port);
299
299
 
300
 
    if (buf) /* used a *_r() function */
 
300
    if(buf) /* used a *_r() function */
301
301
      free(buf);
302
302
  }
303
303