]> git.proxmox.com Git - mirror_frr.git/commit - lib/linklist.h
lib: linklist avoid access NULL->data
authorVincent JARDIN <vincent.jardin@6wind.com>
Mon, 9 Oct 2017 08:51:03 +0000 (10:51 +0200)
committerVincent JARDIN <vincent.jardin@6wind.com>
Mon, 9 Oct 2017 08:51:03 +0000 (10:51 +0200)
commit67533c11d2069bcf65a08a84e26fba900448f4ea
treee17c57ab03cf9fc7760d8c832b58d9229f4e8448
parent40aa03ebded76a14fbbb81c84cd5ffe0ccc3ec8b
lib: linklist avoid access NULL->data

Let's assert(NULL) if the datastructure is not set.
The code assumes that the pointer is always non NULL. So, let's enforce
this semantic.

Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
lib/linklist.h