Fix XML output (with new libnetfilter_conntrack API)
Hi,
I found a little mistake in new libnetfilter_conntrack API, in snprintf() code with XML output. I attached a patch to fix it.
Victor Stinner
http://www.inl.fr/
conntrack/snprintf_xml.c +2 -2
@@ -321,10 +321,10 @@ ret =snprintf (buf, len,"<flow type=\"new\">" );break ;case NFCT_T_UPDATE : - ret =snprintf (buf, len,"<flow type=\"update\"" ); + ret =snprintf (buf, len,"<flow type=\"update\">" );break ;case NFCT_T_DESTROY : - ret =snprintf (buf, len,"<flow type=\"destroy\"" ); + ret =snprintf (buf, len,"<flow type=\"destroy\">" );break ;default : ret =snprintf (buf, len,"<flow>" );
Quoted 2 lines · Victor Stinner
I found a little mistake in new
libnetfilter_conntrackAPI, insnprintf()code with XML output. I attached a patch to fix it.
Applied, thanks.
BTW, if you were familiar with XML stuff, I'd like to hear a second opinion on the current layout.
Signature · 2 lines
The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris