aboutsummaryrefslogtreecommitdiff
path: root/usrsctplib/netinet6
diff options
context:
space:
mode:
authort00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2013-11-02 19:19:22 +0000
committert00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2013-11-02 19:19:22 +0000
commitb22b16e837da4b6a6fbf53c2d7a79a25eb392697 (patch)
tree4b65fc09f059f5d58af5911ac39e8f5f4aa7976c /usrsctplib/netinet6
parent8dc82e8101bd7d3e2876e66cf92d4907e9ae4496 (diff)
downloadusrsctp-b22b16e837da4b6a6fbf53c2d7a79a25eb392697.tar.gz
More warnings...
Diffstat (limited to 'usrsctplib/netinet6')
-rw-r--r--usrsctplib/netinet6/sctp6_usrreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usrsctplib/netinet6/sctp6_usrreq.c b/usrsctplib/netinet6/sctp6_usrreq.c
index 093fabb7..765850d7 100644
--- a/usrsctplib/netinet6/sctp6_usrreq.c
+++ b/usrsctplib/netinet6/sctp6_usrreq.c
@@ -1178,14 +1178,16 @@ sctp6_connect(struct socket *so, struct mbuf *nam, struct proc *p)
uint32_t vrf_id;
int error = 0;
struct sctp_inpcb *inp;
- struct in6pcb *inp6;
struct sctp_tcb *stcb;
#ifdef INET
+ struct in6pcb *inp6;
struct sockaddr_in6 *sin6;
struct sockaddr_storage ss;
#endif
+#ifdef INET
inp6 = (struct in6pcb *)so->so_pcb;
+#endif
inp = (struct sctp_inpcb *)so->so_pcb;
if (inp == NULL) {
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP6_USRREQ, ECONNRESET);