----------------------------------------------------- */
| 59 | |
| 60 | /* ----------------------------------------------------- */ |
| 61 | int send_pr_buffer( struct retr_buf *rb, void *buf, int len, |
| 62 | #ifdef EXTRA_DEBUG |
| 63 | char* file, const char *function, int line, |
| 64 | #endif |
| 65 | void* ctx) |
| 66 | { |
| 67 | if (buf && len && rb ) |
| 68 | return msg_send( rb->dst.send_sock, rb->dst.proto, &rb->dst.to, |
| 69 | rb->dst.proto_reserved1, buf, len, ctx); |
| 70 | else { |
| 71 | #ifdef EXTRA_DEBUG |
| 72 | LM_CRIT("sending an empty buffer from %s: %s (%d)\n",file, |
| 73 | function, line); |
| 74 | #else |
| 75 | LM_CRIT("attempt to send an empty buffer\n"); |
| 76 | #endif |
| 77 | return -1; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | |
| 82 |
nothing calls this directly
no test coverage detected