Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jul 2006 14:18:59 GMT
From:      Paolo Pisati <piso@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 102559 for review
Message-ID:  <200607271418.k6REIxfr014354@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=102559

Change 102559 by piso@piso_newluxor on 2006/07/27 14:18:18

	Check for end of list.

Affected files ...

.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#16 edit

Differences ...

==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#16 (text+ko) ====

@@ -300,6 +300,8 @@
 	struct dll *t;
 
 	t = SLIST_FIRST(&dll_chain);
+	if (t == NULL)
+		return (NULL);
 	SLIST_REMOVE_HEAD(&dll_chain, next);
 	return (t);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607271418.k6REIxfr014354>