]> granicus.if.org Git - ipset/commit
Retry printing when sprintf fails (reported by Stig Thormodsrud)
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 22 Sep 2014 05:32:38 +0000 (07:32 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 22 Sep 2014 05:32:38 +0000 (07:32 +0200)
commitf06a022685699e608aa5e4157728f7f673aa2f89
treeadde94746cf20d654e33269c6a71ed44002be6e7
parentfbed811be97ed18c068bd1e76d2a0c2a6f1eaf0e
Retry printing when sprintf fails (reported by Stig Thormodsrud)

Instead of returning the length of the string which would have been
printed, sprintf sometimes simply returns an error code. Handle
the case and flush the printing buffer and retry.
lib/session.c