]> git.ipfire.org Git - thirdparty/krb5.git/commit
Coverity was nervous that hst_realm.c's domain_heuristic() wasn't
authorGreg Hudson <ghudson@mit.edu>
Thu, 5 Feb 2009 18:26:47 +0000 (18:26 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 5 Feb 2009 18:26:47 +0000 (18:26 +0000)
commit14f126c33d0259bed41255b9e809a66072733f36
tree9221df72300c988f7c7993c8ab348050c468c2e3
parent293242e87b276d9b56c03b5269781361f2b4acfc
Coverity was nervous that hst_realm.c's domain_heuristic() wasn't
checking for a NULL return from strchr.  The code was safe because a
previous call to strchr on the same argments was checked, but make
Coverity less nervous by storing the result of that previous call and
reusing it.  Also make the function conform better to our standards.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21891 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/os/hst_realm.c