]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add null check to placate static analysis tools
authorMartin Kittel <martin.kittel@sap.com>
Wed, 29 Mar 2017 07:22:18 +0000 (09:22 +0200)
committerGreg Hudson <ghudson@mit.edu>
Wed, 29 Mar 2017 16:46:56 +0000 (12:46 -0400)
commita1a9e428b4971c2c8a5520e6c5f28deef3f94228
treede6b703696b9d3d3cff19f5cbbd22ccc50917d48
parent07907bc4b9057001b0f0a117b80eac971823abbe
Add null check to placate static analysis tools

In trace_format() when processing lenstr, if p is NULL and len is 0,
skip the call to buf_add_printable_len() as Coverity considers it an
unconditional dereference of p.

[ghudson@mit.edu: added explanation to commit message]
src/lib/krb5/os/trace.c