- Timestamp:
- Jan 5, 2015 4:34:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r4968 r4972 2218 2218 2219 2219 PJ_ASSERT_RETURN(ssock && pool && buff_size, PJ_EINVAL); 2220 PJ_ASSERT_RETURN(ssock->ssl_state==SSL_STATE_ESTABLISHED, PJ_EINVALIDOP); 2220 2221 if (ssock->ssl_state != SSL_STATE_ESTABLISHED) 2222 return PJ_EINVALIDOP; 2221 2223 2222 2224 readbuf = (void**) pj_pool_calloc(pool, ssock->param.async_cnt, … … 2246 2248 2247 2249 PJ_ASSERT_RETURN(ssock && pool && buff_size && readbuf, PJ_EINVAL); 2248 PJ_ASSERT_RETURN(ssock->ssl_state==SSL_STATE_ESTABLISHED, PJ_EINVALIDOP); 2250 2251 if (ssock->ssl_state != SSL_STATE_ESTABLISHED) 2252 return PJ_EINVALIDOP; 2249 2253 2250 2254 /* Create SSL socket read buffer */ … … 2451 2455 2452 2456 PJ_ASSERT_RETURN(ssock && data && size && (*size>0), PJ_EINVAL); 2453 PJ_ASSERT_RETURN(ssock->ssl_state==SSL_STATE_ESTABLISHED, PJ_EINVALIDOP); 2457 2458 if (ssock->ssl_state != SSL_STATE_ESTABLISHED) 2459 return PJ_EINVALIDOP; 2454 2460 2455 2461 // Ticket #1573: Don't hold mutex while calling PJLIB socket send(). … … 2726 2732 pj_status_t status; 2727 2733 2728 PJ_ASSERT_RETURN(ssock->ssl_state == SSL_STATE_ESTABLISHED, PJ_EINVALIDOP); 2734 PJ_ASSERT_RETURN(ssock, PJ_EINVAL); 2735 2736 if (ssock->ssl_state != SSL_STATE_ESTABLISHED) 2737 return PJ_EINVALIDOP; 2729 2738 2730 2739 if (SSL_renegotiate_pending(ssock->ossl_ssl))
Note: See TracChangeset
for help on using the changeset viewer.