CVS: rdesktop tcp.c,1.24,1.25
Michael Gernoth <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20490
Modified Files:
tcp.c
Log Message:
Fix segfault on platforms where getaddrinfo returns non-negative error-
codes (e.g. solaris)
Index: tcp.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/tcp.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** tcp.c 15 Jun 2004 22:17:08 -0000 1.24
--- tcp.c 25 Jun 2004 15:46:26 -0000 1.25
***************
*** 149,155 ****
hints.ai_socktype = SOCK_STREAM;
! n = getaddrinfo(server, tcp_port_rdp_s, &hints, &res);
!
! if (n < 0)
{
error("getaddrinfo: %s\n", gai_strerror(n));
--- 149,153 ----
hints.ai_socktype = SOCK_STREAM;
! if (getaddrinfo(server, tcp_port_rdp_s, &hints, &res))
{
error("getaddrinfo: %s\n", gai_strerror(n));
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com