Code

src/liboping.c: Fixed argument verification.
authorSebastian Harl <sh@tokkee.org>
Mon, 20 Jul 2009 07:40:32 +0000 (09:40 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 20 Jul 2009 07:40:32 +0000 (09:40 +0200)
commite6cd6a0a6a219c6f2b1c86d308618b99e83345b0
tree40fd4c520486be621afe270d60f4e5e646b4639e
parentd0feb43395e766c2e2fc988d2ada8965595978ce
src/liboping.c: Fixed argument verification.

ping_iterator_get_info()'s 'buffer' argument _may_ be NULL, since the user
might only be interested in the size of the (to be) returned value. If
'buffer' is NULL, '*buffer_len' should be 0, though, to make sure nothing gets
written to 'buffer'.

This bug was introduced in commit 9ae85a09d919777c9be52e55b23c08bf2c8c1d0e.
src/liboping.c