Commit ce1567a4 authored by Mike Hibler's avatar Mike Hibler
Browse files

initialize getsockname length buffer

parent 70e07d57
......@@ -295,6 +295,7 @@ void nameFD(int fd, const struct sockaddr *localname,
int gsn_rv;
if (localname == NULL) {
namelen = sizeof(;
gsn_rv = getsockname(fd,(struct sockaddr *),&namelen);
if (gsn_rv != 0) {
croak("Unable to get local socket name: %s\n", strerror(errno));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment