| Summary: | Invalid typecating for ipv4 and ipv6 in rpcsvc_get_listener_port. | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Gaurav <ggangalw> |
| Component: | transport | Assignee: | Gaurav <ggangalw> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.1.3 | CC: | gluster-bugs, rahulcs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | 3.3.0.qa11 | Category: | --- |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
PATCH: http://patches.gluster.com/patch/7303 in master (RPC : Valid typecasting for ipv4 and ipv6 in rpcsvc_get_listener_port.) PATCH: http://patches.gluster.com/patch/7302 in release-3.1 (RPC : Valid typecasting for ipv4 and ipv6 in rpcsvc_get_listener_port.) PATCH: http://patches.gluster.com/patch/7338 in release-3.2 (RPC : Valid typecasting for ipv4 and ipv6 in rpcsvc_get_listener_port.) Code change committed. |
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;