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

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2177#discussion_r363394577">src/modules/keepalive/keepalive_rpc.c</a>:</p>
<pre style='color:#555'>> +    return;
+}
+static const char *keepalive_rpc_get_doc[2] = {
+               "gets destination info data  from keepalive memory. usage keepalive.get sip:xx@domain listname", 0};
+
+
+static void keepalive_rpc_flush(rpc_t *rpc, void *ctx)
+{
+       ka_dest_t *dest;
+       LM_DBG("Keepalive flushes  \n");
+       ka_lock_destination_list();
+
+       for(dest = ka_destinations_list->first; dest != NULL; dest = dest->next) {
+               free_destination(dest);
+       }
+       ka_destinations_list->first = 0;
</pre>
<p>There is no strict policy on using <code>NULL</code>  or <code>0</code> for pointers, probably the former is more intuitive for pointers and eventually raise compile warnings if the type is not pointer, but there are many places in the code where <code>0</code> is used for this purpose. If someone wants to make it coherent everywhere by using <code>NULL</code> instead of <code>0</code> for pointers, I am fine with it.</p>
<p>Given that the PR is rather old here, I am going to merge it and fix what was pointed in the other comments.</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/2177?email_source=notifications&email_token=ABO7UZMJCHXUZO33Z2OD3J3Q4NSIHA5CNFSM4J3IUNWKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQYVQEY#discussion_r363394577">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMI3PBRG2FJN5MDJZTQ4NSIHANCNFSM4J3IUNWA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZO5CQREKSJQ7TWQKADQ4NSIHA5CNFSM4J3IUNWKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQYVQEY.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/2177?email_source=notifications\u0026email_token=ABO7UZMJCHXUZO33Z2OD3J3Q4NSIHA5CNFSM4J3IUNWKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQYVQEY#discussion_r363394577",
"url": "https://github.com/kamailio/kamailio/pull/2177?email_source=notifications\u0026email_token=ABO7UZMJCHXUZO33Z2OD3J3Q4NSIHA5CNFSM4J3IUNWKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQYVQEY#discussion_r363394577",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>