diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2015-01-22 12:59:41 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2015-01-22 12:59:41 -0300 |
commit | 4e9e0f60fe1f426dfae4cced9d3b5d1f1d4d9487 (patch) | |
tree | a022705affe98587268dfda6cf2d7bd3ea19e320 /src | |
parent | 5762e282eaa55de8e548730d64f1844e7261896c (diff) |
Fix for segfault when there's no dpid and view source is requested.
Diffstat (limited to 'src')
-rw-r--r-- | src/capi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -571,8 +571,8 @@ int a_Capi_dpi_send_data(const DilloUrl *url, void *bw, } else { /* Re-use an open connection */ conn = Capi_conn_find(server); - if (conn) { - /* found */ + if (conn && conn->InfoSend) { + /* found & active */ dbuf = a_Chain_dbuf_new(data, data_sz, 0); a_Capi_ccc(OpSend, 1, BCK, conn->InfoSend, dbuf, NULL); dFree(dbuf); |