]> git.ipfire.org Git - thirdparty/krb5.git/commit
Catch more strtol() failures when using KEYRINGs
authorNalin Dahyabhai <nalin@dahyabhai.net>
Mon, 11 Nov 2013 18:10:08 +0000 (13:10 -0500)
committerGreg Hudson <ghudson@mit.edu>
Tue, 12 Nov 2013 16:13:51 +0000 (11:13 -0500)
commit5ac159e220297a8f62dd5edcec6f9b988b0627ea
tree5fbbddd5804e475f03eb9d16d857150eebf5dde8
parent689d769c10c53bd4fa40e82421c89b96cc86cbae
Catch more strtol() failures when using KEYRINGs

When parsing what should be a UID while resolving a KEYRING ccache
name, don't just depend on strtol() to set errno when the residual
that we pass to it can't be parsed as a number.  In addition to
checking errno, pass in and check the value of an "endptr".

[ghudson@mit.edu: simplified slightly]

ticket: 7764 (new)
target_version: 1.12
tags: pullup
src/lib/krb5/ccache/cc_keyring.c