diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-09-15 08:26:22 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-09-25 07:46:08 +0200 |
commit | ac51d63265511a67fa76f5e0e7363e688cde57fc (patch) | |
tree | f51a6e32a931ac47fdace0f4cdc727e1857b872e /lib/constate.c | |
parent | 410a801ac3345c6ae8e732174989d9c2986faf36 (diff) | |
download | gnutls-ac51d63265511a67fa76f5e0e7363e688cde57fc.tar.gz |
_gnutls_epoch_get(): simplified use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/constate.c')
-rw-r--r-- | lib/constate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/constate.c b/lib/constate.c index 58367a737f..becdfd9dcb 100644 --- a/lib/constate.c +++ b/lib/constate.c @@ -507,7 +507,8 @@ _gnutls_epoch_get(gnutls_session_t session, unsigned int epoch_rel, if (params == NULL || *params == NULL) return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST); - *params_out = *params; + if (params_out) + *params_out = *params; return 0; } |