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 | 647238ecb3141fd8c02c6f1cee3fd8d754f6f9e7 (patch) | |
tree | 3a18c3ec4fee8b2ef8c8e619254961adb59f502f /src | |
parent | 874c68b4235eb459d94af9622f28bad91028b3c9 (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
@@ -570,8 +570,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); |