From 7109995777c654016784a11fdebe3b26e6a0002a Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 11 Oct 2015 23:35:49 +0200 Subject: [PATCH] Fix a segfault when debugging is enabled. --- utcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2