<p></p>
<p><b>@wkampich</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2675#discussion_r605184388">src/modules/lost/functions.c</a>:</p>
<pre style='color:#555'>> +                                                    goto err;
+                                               }
+                                               /* clean up */
+                                               tmp.s = NULL;
+                                               tmp.len = 0;
+                                               /* check loop */
+                                               if(oldurl.s != NULL && oldurl.len > 0) {
+                                                       if(str_strcasecmp(&url, &oldurl) == 0) {
+                                                               LM_ERR("loop detected: "
+                                                                          "[%.*s]<-->[%.*s]\n",
+                                                                               oldurl.len, oldurl.s, url.len, url.s);
+                                                               goto err;
+                                                       }
+                                               }
+                                               /* remember the redirect target */
+                                               oldurl.s = lost_copy_string(url, &oldurl.len);
</pre>
<p>thanks, have incorporated it</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2675#discussion_r605184388">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIUIPP6MFBGUJLLLP3TGN53VANCNFSM4ZGSJGLQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLQXVZWW6AN63CVCXTTGN53VA5CNFSM4ZGSJGL2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEVFP6YY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2675#discussion_r605184388",
"url": "https://github.com/kamailio/kamailio/pull/2675#discussion_r605184388",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>