X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2Fmeta.c;h=b59f15b09443f47596d8e60454686e262c5298b7;hp=a32d413776d1f7781f5076dc24b7bf7808d62337;hb=36f8e4da8b1708474505f5a1fa8cf1ba848921de;hpb=261d1eac1c5bbe6c87aa707566f290e611169432 diff --git a/src/meta.c b/src/meta.c index a32d413..b59f15b 100644 --- a/src/meta.c +++ b/src/meta.c @@ -41,6 +41,11 @@ bool send_meta(connection_t *c, const char *buffer, int length) cp(); + if(!c) { + logger(LOG_ERR, _("send_meta() called with NULL pointer!")); + abort(); + } + ifdebug(META) logger(LOG_DEBUG, _("Sending %d bytes of metadata to %s (%s)"), length, c->name, c->hostname);