summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-11-13 15:50:59 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-11-13 15:50:59 (GMT)
commita11af924b2bb8efa1f392323ec9a5b6047687e7e (patch)
tree37fe813c0c78a7ea1508fb461eeb8e4b1cacb6fe /unix
parent5717e880e963ee03f2a8fe2f1732b295331b0b22 (diff)
downloadtcl-a11af924b2bb8efa1f392323ec9a5b6047687e7e.zip
tcl-a11af924b2bb8efa1f392323ec9a5b6047687e7e.tar.gz
tcl-a11af924b2bb8efa1f392323ec9a5b6047687e7e.tar.bz2
Oops!
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixChan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 3b8098c..b4882c8 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixChan.c,v 1.86 2007/11/13 14:59:38 dkf Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.87 2007/11/13 15:50:59 dkf Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -2646,6 +2646,7 @@ CreateSocketAddress(
{
#ifdef HAVE_GETADDRINFO
struct addrinfo hints, *resPtr = NULL;
+ char *native;
Tcl_DString ds;
int result;
@@ -2670,7 +2671,7 @@ CreateSocketAddress(
*/
native = Tcl_UtfToExternalDString(NULL, host, -1, &ds);
- result = getaddrinfo(Tcl_DStringValue(&ds), NULL, &hints, &resPtr);
+ result = getaddrinfo(native, NULL, &hints, &resPtr);
Tcl_DStringFree(&ds);
if (result == 0) {
memcpy(sockaddrPtr, resPtr->ai_addr, sizeof(struct sockaddr_in));