JSSL_throwSSLSocketException(env, "Failed to bind socket");
JSS_throwMsgPrErr(env, BIND_EXCEPTION, "Could not bind to address");
Java_org_mozilla_jss_ssl_SocketBase_socketBind    (JNIEnv *env, jobject self, jbyteArray addrBA, jint port){    JSSL_SocketData *sock;    PRNetAddr addr;    jbyte *addrBAelems = NULL;    PRStatus status;    if( JSSL_getSockData(env, self, &sock) != PR_SUCCESS) {        /* exception was thrown */        goto finish;    }    /*     * setup the PRNetAddr structure     */    addr.inet.family = AF_INET;    addr.inet.port = htons(port);    if( addrBA != NULL ) {        PR_ASSERT(sizeof(addr.inet.ip) == 4);        PR_ASSERT( (*env)->GetArrayLength(env, addrBA) == 4);        addrBAelems = (*env)->GetByteArrayElements(env, addrBA, NULL);        if( addrBAelems == NULL ) {            ASSERT_OUTOFMEM(env);            goto finish;        }        memcpy(&addr.inet.ip, addrBAelems, 4);    } else {        addr.inet.ip = PR_htonl(INADDR_ANY);    }    /* do the bind() call */    status = PR_Bind(sock->fd, &addr);    if( status != PR_SUCCESS ) {        JSSL_throwSSLSocketException(env, "Failed to bind socket");        goto finish;    }       finish:    if( addrBAelems != NULL ) {        (*env)->ReleaseByteArrayElements(env, addrBA, addrBAelems, JNI_ABORT);    }}