diff options
author | Richard Levitte <levitte@openssl.org> | 2018-05-08 20:15:27 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-05-08 20:56:32 +0200 |
commit | 06e0950d20d3110849dea28eb78cac4127618b48 (patch) | |
tree | 13f151af3e5e9f89d84ef18a2589868d49946a64 /crypto/rand/rand_vms.c | |
parent | 8c8fbca92dc95bb8672dea194bbe414059a874d2 (diff) |
VMS rand: assign before check, not the other way around
items->ile3$w_code was checked before it was assigned its value...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6200)
Diffstat (limited to 'crypto/rand/rand_vms.c')
-rw-r--r-- | crypto/rand/rand_vms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_vms.c b/crypto/rand/rand_vms.c index 0037466ef7..b263f94208 100644 --- a/crypto/rand/rand_vms.c +++ b/crypto/rand/rand_vms.c @@ -277,13 +277,13 @@ static size_t prepare_item_list(const struct item_st *items_input, for (; items_input_num-- > 0; items_input++, items++) { + items->ile3$w_code = items_input->code; /* Special treatment of JPI$_FINALEXC */ if (items->ile3$w_code == JPI$_FINALEXC) items->ile3$w_length = 4; else items->ile3$w_length = items_input->length; - items->ile3$w_code = items_input->code; items->ile3$ps_bufaddr = databuffer; items->ile3$ps_retlen_addr = 0; |