]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Clean up openconnect_protos handling
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 10 Oct 2019 10:49:46 +0000 (11:49 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 10 Oct 2019 10:49:49 +0000 (11:49 +0100)
commit7cb8996e21b442c4ec60ce25c87e8a69516fac17
treedcaaa0dfc768c005379389310644ed580c50a3d1
parent8853c3ec2d73e2a853d84f2344a9eb3a8138d14e
Clean up openconnect_protos handling

Do it with a bit less pointer arithmetic and it won't need a sentinel
at the end of the array.

It's a little bit cleaner, and hopefully Coverity will shut up about
leaks from openconnect_get_supported_protocols() potentially returning
non-negative after allocating the returned pointer.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
library.c