Bug 764688 (GLUSTER-2956) - Invalid typecating for ipv4 and ipv6 in rpcsvc_get_listener_port.
Summary: Invalid typecating for ipv4 and ipv6 in rpcsvc_get_listener_port.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2956
Product: GlusterFS
Classification: Community
Component: transport
Version: 3.1.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gaurav
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-30 06:44 UTC by Gaurav
Modified: 2011-09-28 08:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions: 3.3.0.qa11


Attachments (Terms of Use)

Description Gaurav 2011-05-30 06:44:37 UTC
case AF_INET:
                listener_port = ((struct sockaddr_in6 *)&listener->trans->myinfo.sockaddr)->sin6_port;
                break;

        case AF_INET6:
                listener_port = ((struct sockaddr_in *)&listener->trans->myinfo.sockaddr)->sin_port; 
                break;

Comment 1 Anand Avati 2011-05-31 09:11:11 UTC
PATCH: http://patches.gluster.com/patch/7303 in master (RPC : Valid typecasting for ipv4 and ipv6 in rpcsvc_get_listener_port.)

Comment 2 Anand Avati 2011-05-31 13:12:05 UTC
PATCH: http://patches.gluster.com/patch/7302 in release-3.1 (RPC : Valid typecasting for ipv4 and ipv6 in rpcsvc_get_listener_port.)

Comment 3 Anand Avati 2011-05-31 13:13:23 UTC
PATCH: http://patches.gluster.com/patch/7338 in release-3.2 (RPC : Valid typecasting for ipv4 and ipv6 in rpcsvc_get_listener_port.)

Comment 4 Rahul C S 2011-06-09 07:53:38 UTC
Code change committed.


Note You need to log in before you can comment on or make changes to this bug.