send_tgs.c static analyzer friendliness
authorTom Yu <tlyu@mit.edu>
Wed, 15 Apr 2009 20:06:49 +0000 (20:06 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 15 Apr 2009 20:06:49 +0000 (20:06 +0000)
commit459bafc059b082b99d81082a1f6e4ff93aee626d
treeff6dd4176c204bade16224baa6853b37fa20f61e
parent6bf1160d7320290a0592125d0d6ec4d6a4296f4d
send_tgs.c static analyzer friendliness

pull up r22002 from trunk

 ------------------------------------------------------------------------
 r22002 | ghudson | 2009-02-13 17:00:47 -0500 (Fri, 13 Feb 2009) | 4 lines
 Changed paths:
    M /trunk/src/lib/krb5/krb/send_tgs.c

 In tgs_construct_tgsreq, free scratch even if scratch->data is NULL.
 (Which probably can't happen, but static analyzers don't know that.)
 Also protect scratch from being freed before initialization.

ticket: 6465
tags: pullup
target_version: 1.7
version_fixed: 1.7

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22237 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/send_tgs.c