diff options
| author | Christophe Fergeau <cfergeau@redhat.com> | 2014-01-03 16:41:55 +0100 |
|---|---|---|
| committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-01-07 13:55:58 +0100 |
| commit | 6175014ed77be6d1acd6420e36ca6582b573532c (patch) | |
| tree | 8744621e0705ef6a462d3be2c6335dc25d3eb631 /python_modules/codegen.py | |
| parent | a4f4ddf56c77f84fc41e1eac6fca23a0d9cc0e33 (diff) | |
| download | spice-common-6175014ed77be6d1acd6420e36ca6582b573532c.tar.gz spice-common-6175014ed77be6d1acd6420e36ca6582b573532c.tar.xz spice-common-6175014ed77be6d1acd6420e36ca6582b573532c.zip | |
ssl: Don't use uninitialized variable in verify_subject()
If verify_subject() is called with a SpiceOpenSSLVerify struct containing a
non-NULL 'in_subject' member, it would try to use the local 'in_entries'
variable without having initialized it first. This could happen if
verify_subject() was called multiple time with the same SpiceOpenSSLVerify
context, which probably isn't occurring the way we are using it.
However, since verify_subject() is the only method which needs in_subject,
we don't need to have it stored in SpiceOpenSSLVerify, and we can
recreate it as needed locally in that method, which avoids that issue.
Diffstat (limited to 'python_modules/codegen.py')
0 files changed, 0 insertions, 0 deletions
