Changeset 6168
- Timestamp:
- 05/16/10 13:23:55 (3 years ago)
- Files:
-
- 1 modified
-
luci2/libustream/protocol/http.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci2/libustream/protocol/http.c
r6160 r6168 152 152 if (!http->ssl) { 153 153 if (!(http->ssl = ustream_tls_new(http->socket))) { 154 close(http->socket); 154 155 goto error; 155 156 } … … 166 167 } 167 168 } else { 168 int s = dup(http->socket); 169 if (!(http->transport = fdopen(s, "r+"))) { 170 close(s); 169 if (!(http->transport = fdopen(http->socket, "r+"))) { 170 close(http->socket); 171 171 goto error; 172 172 } … … 578 578 } 579 579 if (http->ssl) { 580 close(http->socket); 580 581 SSL_shutdown(http->ssl); 581 582 SSL_free(http->ssl); 582 }583 if (http->socket) {584 close(http->socket);585 583 } 586 584 free(http);
