| 458 | } |
| 459 | |
| 460 | static int |
| 461 | get_request_id_value(const char *name, TSMBuffer buf, TSMLoc hdr) |
| 462 | { |
| 463 | int id = -1; |
| 464 | TSMLoc field; |
| 465 | |
| 466 | field = TSMimeHdrFieldFind(buf, hdr, name, -1); |
| 467 | if (field != TS_NULL_MLOC) { |
| 468 | id = TSMimeHdrFieldValueIntGet(buf, hdr, field, 0); |
| 469 | } |
| 470 | |
| 471 | TSHandleMLocRelease(buf, hdr, field); |
| 472 | return id; |
| 473 | } |
| 474 | |
| 475 | // This routine can be called by tests, from the READ_REQUEST_HDR_HOOK |
| 476 | // to figure out the id of a test message |
no test coverage detected