Merge branch 'master' into 1.1
[tinc] / src / meta.c
index 82dde3a..6054427 100644 (file)
 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);