aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/im-asapo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/im-asapo.c b/src/im-asapo.c
index e0a23546..4c0533f4 100644
--- a/src/im-asapo.c
+++ b/src/im-asapo.c
@@ -284,6 +284,8 @@ static void send_real(struct im_asapo *a, struct image *image)
AsapoMessageHeaderHandle header;
AsapoErrorHandle err;
+ err = asapo_new_handle();
+
header = asapo_create_message_header(image->serial,
image->data_block_size,
image->filename,
@@ -312,6 +314,8 @@ static void send_placeholder(struct im_asapo *a, struct image *image)
AsapoMessageHeaderHandle header;
AsapoErrorHandle err;
+ err = asapo_new_handle();
+
header = asapo_create_message_header(image->serial,
8, /* strlen("SKIPPED"+\0) */
image->filename,
@@ -339,6 +343,7 @@ static void send_placeholder(struct im_asapo *a, struct image *image)
* send a placeholder */
void im_asapo_send(struct im_asapo *a, struct image *image, int hit)
{
+ if ( a == NULL ) return;
if ( a->producer == NULL ) return;
profile_start("asapo-send");
if ( hit ) {