[sr-dev] git:master:2fe07249: core: pvapi - set prev variable when dropping from cache

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 8 09:39:41 CET 2017


Module: kamailio
Branch: master
Commit: 2fe07249426b1ae9b368a1d1ffc7f2d5b881c704
URL: https://github.com/kamailio/kamailio/commit/2fe07249426b1ae9b368a1d1ffc7f2d5b881c704

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-08T08:57:59+01:00

core: pvapi - set prev variable when dropping from cache

---

Modified: src/core/pvapi.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2fe07249426b1ae9b368a1d1ffc7f2d5b881c704.diff
Patch: https://github.com/kamailio/kamailio/commit/2fe07249426b1ae9b368a1d1ffc7f2d5b881c704.patch

---

diff --git a/src/core/pvapi.c b/src/core/pvapi.c
index 64b9fd96ff..dac770a0f3 100644
--- a/src/core/pvapi.c
+++ b/src/core/pvapi.c
@@ -289,6 +289,7 @@ int pv_cache_drop(void)
 				pkg_free(pvi);
 				return 1;
 			}
+			pvp = pvi;
 			pvi = pvi->next;
 		}
 	}
@@ -310,6 +311,7 @@ int pv_cache_drop(void)
 				pkg_free(pvi);
 				return 1;
 			}
+			pvp = pvi;
 			pvi = pvi->next;
 		}
 	}




More information about the sr-dev mailing list