~ubuntu-branches/ubuntu/precise/xerces-c/precise-updates

« back to all changes in this revision

Viewing changes to src/xercesc/util/NetAccessors/WinSock/BinHTTPURLInputStream.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jay Berkenbilt
  • Date: 2009-12-05 14:58:32 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091205145832-378dg3x72mdzfzup
Tags: 3.1.0~rc1-1
* New upstream release; public release candidate uploaded at request of
  upstream.
* Updated source format to '3.0 (quilt)'

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 */
17
17
 
18
18
/*
19
 
 * $Id: BinHTTPURLInputStream.cpp 734988 2009-01-16 12:34:58Z johns $
 
19
 * $Id: BinHTTPURLInputStream.cpp 778863 2009-05-26 19:59:25Z borisk $
20
20
 */
21
21
 
22
22
 
334
334
        hints.ai_family = PF_UNSPEC;
335
335
        hints.ai_socktype = SOCK_STREAM;
336
336
        int n = wrap_getaddrinfo(hostNameAsCharStar,portBuffer.getRawBuffer(),&hints, &res);
337
 
        if(n<0)
 
337
        if(n != 0)
338
338
        {
339
339
            hints.ai_flags = AI_NUMERICHOST;
340
340
            n = wrap_getaddrinfo(hostNameAsCharStar,(const char*)tempbuf,&hints, &res);
341
 
            if(n<0)
 
341
            if(n != 0)
342
342
                ThrowXMLwithMemMgr1(NetAccessorException, XMLExcepts::NetAcc_TargetResolution, hostName, memoryManager);
343
343
        }
344
344
        janSock.reset();