diff options
author | Sebastian Geerken <devnull@localhost> | 2015-01-24 22:25:12 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-01-24 22:25:12 +0100 |
commit | 76aa3046ab667f01465963ab9a16c185c267dae0 (patch) | |
tree | f304b8ba00682e6c683954b391d836ea3b0bb4c0 /src/capi.c | |
parent | 80c90e491f436c20b021d73de5862a19201457e3 (diff) | |
parent | 5f4f4955b97dc6d33e88b73128321c1a2640c11c (diff) |
Merge with main repo.
Diffstat (limited to 'src/capi.c')
-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); |