- Timestamp:
- Sep 8, 2012 1:05:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r4247 r4248 1158 1158 } 1159 1159 /* For data in the middle buffer, just do nothing on the buffer. The slot 1160 * will be freed when freeing other data that is in the first/last.1160 * will be freed later when freeing the first/last data. 1161 1161 */ 1162 1162 … … 1268 1268 1269 1269 /* Copy the data and set its properties into the send data */ 1270 pj_ioqueue_op_key_init(&wdata->key, sizeof(pj_ioqueue_op_key_t)); 1271 wdata->key.user_data = wdata; 1270 1272 wdata->app_key = send_key; 1271 1273 wdata->record_len = needed_len; … … 1548 1550 } else if (send_key != &ssock->handshake_op_key) { 1549 1551 /* Some data has been sent, notify application */ 1550 write_data_t *wdata = (write_data_t*)send_key ;1552 write_data_t *wdata = (write_data_t*)send_key->user_data; 1551 1553 if (ssock->param.cb.on_data_sent) { 1552 1554 pj_bool_t ret; … … 1932 1934 pj_list_init(&ssock->send_pending); 1933 1935 pj_timer_entry_init(&ssock->timer, 0, ssock, &on_timer); 1936 pj_ioqueue_op_key_init(&ssock->handshake_op_key, 1937 sizeof(pj_ioqueue_op_key_t)); 1934 1938 1935 1939 /* Create secure socket mutex */
Note: See TracChangeset
for help on using the changeset viewer.