summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-04-03 09:53:01 -0400
committerSimo Sorce <simo@redhat.com>2013-04-03 16:39:11 -0400
commitc4cddebdc4d1062c46145a2623f276631840e221 (patch)
tree6716d031d5c9994b5e79b31f5f58a64085254e56
parent20f5dd06be93df2d7ad3a1d76d8aac3a29ee8684 (diff)
downloadgss-proxy-c4cddebdc4d1062c46145a2623f276631840e221.tar.gz
gss-proxy-c4cddebdc4d1062c46145a2623f276631840e221.tar.xz
gss-proxy-c4cddebdc4d1062c46145a2623f276631840e221.zip
Fix dereference before null error fund by Coverity
Signed-off-by: Simo Sorce <simo@redhat.com>
-rw-r--r--proxy/src/client/gpm_unwrap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proxy/src/client/gpm_unwrap.c b/proxy/src/client/gpm_unwrap.c
index 8ddad29..c8c35cf 100644
--- a/proxy/src/client/gpm_unwrap.c
+++ b/proxy/src/client/gpm_unwrap.c
@@ -53,7 +53,9 @@ OM_uint32 gpm_unwrap(OM_uint32 *minor_status,
/* format request */
/* NOTE: the final free will also release the old context */
arg->context_handle = *context_handle;
- arg->qop_state = *qop_state;
+ if (qop_state) {
+ arg->qop_state = *qop_state;
+ }
ret = gp_conv_buffer_to_gssx(input_message_buffer, &message_buffer);
if (ret) {