~oisf/suricata-daily-git-libhtp/libhtp

« back to all changes in this revision

Viewing changes to htp/htp_response.c

  • Committer: Victor Julien
  • Date: 2019-09-19 19:49:06 UTC
  • Revision ID: git-v1:75ff7cb2677fb59724180c03835609ef613c7939
response: fix warning format string

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
                connp->out_tx->response_transfer_coding = HTP_CODING_IDENTITY;
420
420
 
421
421
                htp_log(connp, HTP_LOG_MARK, HTP_LOG_ERROR, 0,
422
 
                        "Response chunk encoding: Invalid chunk length: "PRId64"",
 
422
                        "Response chunk encoding: Invalid chunk length: %"PRId64"",
423
423
                        connp->out_chunked_length);
424
424
                return HTP_OK;
425
425
            }
693
693
            // Get body length
694
694
            connp->out_tx->response_content_length = htp_parse_content_length(cl->value, connp);
695
695
            if (connp->out_tx->response_content_length < 0) {
696
 
                htp_log(connp, HTP_LOG_MARK, HTP_LOG_ERROR, 0, "Invalid C-L field in response: "PRId64"",
 
696
                htp_log(connp, HTP_LOG_MARK, HTP_LOG_ERROR, 0, "Invalid C-L field in response: %"PRId64"",
697
697
                        connp->out_tx->response_content_length);
698
698
                return HTP_ERROR;
699
699
            } else {