]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Debug logging crashfix.
authorTimo Sirainen <tss@iki.fi>
Fri, 18 Jun 2010 19:07:20 +0000 (20:07 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 18 Jun 2010 19:07:20 +0000 (20:07 +0100)
--HG--
branch : HEAD

src/director/director.c

index a4e54dd1fa6c0eeeed98c0a1b7169b8dfb45f5c4..2444a5995a0da4bc34677150b9444e34aa65a963 100644 (file)
@@ -149,7 +149,8 @@ static void director_sync(struct director *dir)
 
        if (dir->debug) {
                i_debug("Ring is desynced (seq=%u, sending SYNC to %s)",
-                       dir->sync_seq, director_connection_get_name(dir->right));
+                       dir->sync_seq, dir->right == NULL ? "(nowhere)" :
+                       director_connection_get_name(dir->right));
        }
 
        director_connection_send(dir->right, t_strdup_printf(