summaryrefslogtreecommitdiff
path: root/src/capi.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2015-01-22 12:59:41 -0300
committerJorge Arellano Cid <jcid@dillo.org>2015-01-22 12:59:41 -0300
commit647238ecb3141fd8c02c6f1cee3fd8d754f6f9e7 (patch)
tree3a18c3ec4fee8b2ef8c8e619254961adb59f502f /src/capi.c
parent874c68b4235eb459d94af9622f28bad91028b3c9 (diff)
Fix for segfault when there's no dpid and view source is requested.
Diffstat (limited to 'src/capi.c')
-rw-r--r--src/capi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/capi.c b/src/capi.c
index 242ae294..8013d3c9 100644
--- a/src/capi.c
+++ b/src/capi.c
@@ -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);