]> git.ipfire.org Git - thirdparty/krb5.git/commit
Take care with types in process_routing_update()
authorBen Kaduk <kaduk@mit.edu>
Fri, 29 Jun 2012 15:35:41 +0000 (11:35 -0400)
committerBen Kaduk <kaduk@mit.edu>
Tue, 3 Jul 2012 04:43:45 +0000 (00:43 -0400)
commitac94bfad7852075360852fa5602d9ff819b27cf0
tree9e557403424ad08d703fa26dd27cb2dd8a69580f
parent9a586c7e0f4f54eb63c53fccb0988dda4c9bc6b8
Take care with types in process_routing_update()

read(2) returns an ssize_t, not an int.  We want to compare this
value against several unsigned size_ts, so make a local copy.
Also cast to int for printing; size_t can be wider than int, but
these values should be small.
src/lib/apputils/net-server.c