From: Guus Sliepen Date: Sun, 11 Oct 2015 21:35:49 +0000 (+0200) Subject: Fix a segfault when debugging is enabled. X-Git-Url: http://git.meshlink.io/?p=utcp;a=commitdiff_plain;h=7109995777c654016784a11fdebe3b26e6a0002a Fix a segfault when debugging is enabled. --- diff --git a/utcp.c b/utcp.c index d846fb1..e347bb7 100644 --- a/utcp.c +++ b/utcp.c @@ -988,7 +988,7 @@ reset: } int utcp_shutdown(struct utcp_connection *c, int dir) { - debug("%p shutdown %d at %u\n", c ? c->utcp : NULL, dir, c->snd.last); + debug("%p shutdown %d at %u\n", c ? c->utcp : NULL, dir, c ? c->snd.last : 0); if(!c) { errno = EFAULT; return -1;