Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/ipfrag.c | 20 +++++---------------
1 file changed, 5 insertions(+), 15 deletions(-)
diff --git a/src/ipfrag.c b/src/ipfrag.c
index 46afdb1..5ba61e3 100644
--- a/src/ipfrag.c
+++ b/src/ipfrag.c
@@ -105,26 +105,16 @@ static void deldgram(struct fragent *ftmp)
free(ftmp);
}
-
-/*
- * Destroy hole descriptor list
- */
-
+/* destroy hole descriptor list */
static void destroyholes(struct fragent *ftmp)
{
struct fragdescent *dtmp = ftmp->fragdesclist;
- struct fragdescent *ntmp = NULL;
- if (ftmp->fragdesclist != NULL) {
- ntmp = dtmp->next_entry;
-
- while (dtmp != NULL) {
- free(dtmp);
- dtmp = ntmp;
+ while (dtmp != NULL) {
+ struct fragdescent *ntmp = dtmp->next_entry;
- if (ntmp != NULL)
- ntmp = ntmp->next_entry;
- }
+ free(dtmp);
+ dtmp = ntmp;
}
}
--
1.9.1