diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-08 13:44:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-08 13:44:53 -0500 |
| commit | 10c7cd3920b0105a009dae138a481f56473bc463 (patch) | |
| tree | 061c082c167150c7b24d1a16021efc2abc31fcab /lib/plist.c | |
| parent | e6b737294a80af25060216cbf91b13f2c3a617b4 (diff) | |
| parent | 8ac885457f9a16032fcc157488c0b0ea48a686c1 (diff) | |
Merge pull request #185 from opensourcerouting/coverity-lib-1
Coverity foo
Diffstat (limited to 'lib/plist.c')
| -rw-r--r-- | lib/plist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/plist.c b/lib/plist.c index 41cae020de..4539d82972 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -557,10 +557,11 @@ prefix_list_entry_delete (struct prefix_list *plist, struct prefix_list_entry *pentry, int update_list) { - prefix_list_trie_del (plist, pentry); - if (plist == NULL || pentry == NULL) return; + + prefix_list_trie_del (plist, pentry); + if (pentry->prev) pentry->prev->next = pentry->next; else |
