]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/udp_usrreq.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / bsd / netinet / udp_usrreq.c
index e789cb7bc5ace708ce3f310ca68343b85fd5a774..f8214f1323a07fa83e0b6e27de817136901f6bb1 100644 (file)
@@ -2346,12 +2346,8 @@ udp_disconnect(struct socket *so)
        struct inpcb *inp;
 
        inp = sotoinpcb(so);
-       if (inp == NULL
-#if NECP
-           || (necp_socket_should_use_flow_divert(inp))
-#endif /* NECP */
-           ) {
-               return inp == NULL ? EINVAL : EPROTOTYPE;
+       if (inp == NULL) {
+               return EINVAL;
        }
        if (inp->inp_faddr.s_addr == INADDR_ANY) {
                return ENOTCONN;