--- uipc_usrreq.c-9.1-release-r243808 2013-02-25 12:59:06.653391783 +0000 +++ uipc_usrreq.c 2013-02-25 13:00:43.196178074 +0000 @@ -1165,5 +1165,5 @@ xu = unp->unp_peercred; else { - if (so->so_type == SOCK_STREAM) + if (so->so_proto->pr_flags & PR_CONNREQUIRED) error = ENOTCONN; else