summaryrefslogtreecommitdiff
path: root/ares_getnameinfo.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-17ares_inet_pton/ntop: cleanupDaniel Stenberg1-1/+0
Make sure that the symbols are always exported and present in c-ares. Make the headers prefixed with 'ares'. Removed the inet_ntop.h version as it no longer features any content.
2012-12-14setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>Yang Tse1-7/+0
Inclusion of these two header files now done in setup_once.h
2012-12-14Header inclusion clean-upYang Tse1-4/+0
Remove header inclusions already done in setup_once.h
2011-08-24ares_getnameinfo: fix random results with c-ares 1.7.5Denis Bilenko1-2/+2
In ares_getnameinfo memcpy did not copy enough bytes, causing it to return arbitrary memory contents as a result.
2011-06-14Use correct sizeof in ares_getnameinfo()Jakub Hrozek1-2/+2
2011-05-26compiler warning: fixYang Tse1-0/+1
Fix compiler warning: conversion may lose significant bits
2010-11-16ares_getnameinfo: Partially revert commit 85520d66e0ac7ac73411bc25e98769a88b2fYang Tse1-1/+1
Upon socket address family and length validation failure return ARES_ENOTIMP in callback again, this is the error code documented in man page and used mostly all over the library.
2010-11-16ares_getnameinfo: Validate socket address family and length.Yang Tse1-4/+6
Validate socket address family and that the socket address length is appropriate for the specified family. Failure is reported with ARES_EBADFAMILY in callback.
2010-11-16ares_getnameinfo: fix two compiler warningsYang Tse1-4/+4
2010-11-13Revert commit 494274e653936335c255a47599970de3df21e7c4Yang Tse1-2/+2
2010-11-12Fix compiler warning: array subscript has type 'char'Yang Tse1-2/+2
2010-11-12Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break ↵Yang Tse1-2/+2
strict-aliasing rules'.
2010-06-16fix memory leak in ares_getnameinfoAndrew C. Morrow1-0/+2
2010-06-02style: make code less than 80 columns wideDaniel Stenberg1-12/+22
2010-03-27remove all $Id$ linesDaniel Stenberg1-1/+0
2010-03-05Added IPv6 name servers supportYang Tse1-4/+8
2009-11-09Remove unneeded preprocessor directivesYang Tse1-4/+0
2009-11-02Renamed c-ares setup.h to ares_setup.hYang Tse1-1/+1
2009-09-17Attempt to silence bogus compiler warning: "Potential null pointer dereference"Yang Tse1-10/+9
2009-05-02Use build-time configured ares_socklen_t instead of socklen_tYang Tse1-1/+2
2008-11-28Make use of gethostname() conditional on it being availableDan Fandrich1-0/+2
2008-09-17improve detection of getservbyport_r()Yang Tse1-0/+7
2008-09-17adjust inclusion of "nameser.h"Yang Tse1-10/+8
2008-09-15include header file only when availableYang Tse1-0/+10
2008-09-11move inclusion of ares_private.h lastYang Tse1-1/+1
2007-10-04Another timeout fix in ares_getnameinfo().Steinar H. Gunderson1-1/+1
2007-10-04Send the timeout count in ares_getnameinfo().Steinar H. Gunderson1-1/+1
2007-09-28Make the query callbacks return the number of timeouts that happened during ↵Steinar H. Gunderson1-11/+13
the execution of a query, and update documentation accordingly. (Patch from the Google tree.)
2007-07-03few minor changes to make ares compile for NetWare CLIB architecture.Gunter Knauf1-0/+4
2007-02-26Removed inclusion of <sys/types.h> in .c-filesGisle Vanem1-2/+0
since it's already included through "setup.h".
2007-02-06compiler warning fixYang Tse1-2/+6
2007-02-05compiler warning fixYang Tse1-1/+1
2007-02-02compiler warning fixYang Tse1-1/+1
2007-02-01compiler warning fixYang Tse1-2/+4
2007-02-01compiler warning fixYang Tse1-1/+4
2007-01-29fix compiler warning "discards qualifiers from pointer target type" in debug ↵Yang Tse1-1/+2
builds
2006-10-25Fixed "'x' might be used uninitialized in this function" warning.Gisle Vanem1-9/+9
Removed trailing whitespace.
2006-08-29Brad Spencer didDaniel Stenberg1-2/+2
o made ares_version.h use extern "C" for c++ compilers o fixed compiler warnings in ares_getnameinfo.c o fixed a buffer position init for TCP reads
2005-12-11Undo last changesYang Tse1-1/+1
2005-12-11Fix compiler warning and compatibility issue with the type of the parameter ↵Yang Tse1-1/+1
used in getnameinfo() to receive the length of the sockaddr struct.
2005-12-10Modified lookup_service() to avoid the risk of a potential buffer overflowYang Tse1-55/+47
2005-12-09Fix compiler warningYang Tse1-0/+2
2005-11-25Change based on Yang Tse's excellent fix to reduce buffer overflow risk andDaniel Stenberg1-11/+21
fixing a compiler warning in the append_scopeid() function.
2005-11-24avoid doing #if an a predef symbol that might not be definedDaniel Stenberg1-0/+2
2005-11-14Added CVS id.Gisle Vanem1-2/+5
Avoid warning 'x might be used uninitialized in this function'.
2005-10-03Ok, based on the online docs for AIX'es getservbyport_r() I adjusted to codeDaniel Stenberg1-1/+2
to do (what I believe is) "right". See docs on: http://publib.boulder.ibm.com/infocenter/pseries/index.jsp?topic=/com.ibm.aix.doc/libs/commtrf2/getservbyport_r.htm
2005-09-211 - attempted fix of uninitialized variableDaniel Stenberg1-28/+44
2 - indented and edited to fit better within 80 columns 3 - fixed possible buffer overflow in the service name lookup function
2005-09-18Added constants that will be used by ares_getaddrinfo. Made ares_getnameinfo ↵Dominick Meglio1-1/+26
use the reentrant getservbyport (getservbyport_r) if it isavailable to ensure it works properly in a threaded environment
2005-05-17More of the sameDominick Meglio1-1/+2
2005-05-17More compiler warning cleanupsDominick Meglio1-2/+7