]> git.puffer.fish Git - mirror/frr.git/commit
lib: make sockunion2str safer to use
authorTimo Teräs <timo.teras@iki.fi>
Sat, 23 May 2015 08:08:38 +0000 (11:08 +0300)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:30 +0000 (15:33 +0000)
commit67e2b6f013abb23b42f9e2f85e5a3a44916b617c
tree10a34154fbbc52315b13d4087032b211a38f6127
parentd3830f1fa453db6213476acdc77467a737fabb50
lib: make sockunion2str safer to use

It's mostly used for logging, and the return value is never
checked, so try to make it valid.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 53009d387a633997b16d32224b50451b5c81b61a)
lib/sockunion.c