summaryrefslogtreecommitdiff
path: root/src/slist.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-11-26 21:59:27 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-11-26 21:59:27 +0000
commitb9fef29a9d97ad15514b7356cf4de82775f6bf30 (patch)
treecef23360c5443f8a1db3491843005a29c7d542e9 /src/slist.c
parentadded generic single linked list (diff)
added tcp listener list
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@7 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/slist.c')
-rw-r--r--src/slist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slist.c b/src/slist.c
index 58528bd..8dd1963 100644
--- a/src/slist.c
+++ b/src/slist.c
@@ -76,7 +76,7 @@ slist_element_t* slist_add(slist_t* lst, void* data)
void slist_remove(slist_t* lst, void* data)
{
- if(!lst || !lst->first_)
+ if(!lst || !lst->first_ || !data)
return;
slist_element_t* tmp = lst->first_->next_;