Subject: [clisp-list] 2.27 socket-stream-local bug

From: ian wild <[email-masked]>
Date: Tue Dec 11 13:10:03 2001

Bug:

(socket:socket-stream-local xx t) tends to return garbage
after the IP address

Cause:

The comment in src/socket.d claiming that socket_getlocalname()
"Fills all of *hd" is less than honest.

Fix:

Add a clause like the one in socket_getpeername()

  else {
    hd->truename[0] = '\0';
  }

at the end of the "if (resolve_p)" in socket_getlocalname().

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com