Possible bug in tnmHttp.c?

clau@plaintree.com
Mon, 12 May 97 17:36:33 est

I spot something suspicious, albeit very minor:
(This is from 2.1.5 distribution)

static void
HttpAcceptProc(clientData, channel, hostName, port)
ClientData clientData;
Tcl_Channel channel;
char *hostName;
int port;
{
...
struct sockaddr_in sockaddr;

...

rc = HttpEvalCallback(interp, bindPtr->command,
inet_ntoa(sockaddr.sin_addr), path);


...
}

In between the declaration of sockaddr and the call to
HttpEvalCallback, sockaddr is never referenced (never filled in).
HttpEvalCallback uses that parameter to substitute in the %A in the
callback script to "http bind" command, which at my site gives garbage
addresses. I got confirmation from Juergen that this works at his
site, so I guess this is just a version mismatch?

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.