sched: Only call pre/post select hooks if tasks are not in error state.
[paraslash.git] / send_common.c
index 448ce52..43aeb2b 100644 (file)
@@ -174,7 +174,9 @@ void send_chunk(struct sender_client *sc, struct sender_status *ss,
 
        if (!sc->header_sent && current_chunk) {
                size_t header_len;
-               char *header_buf = vss_get_header(&header_len);
+               char *header_buf;
+
+               vss_get_header(&header_buf, &header_len);
                if (header_buf && header_len > 0) {
                        ret = queue_chunk_or_shutdown(sc, ss, -1U, 0);
                        if (ret < 0)