diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-09-22 06:18:59 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-09-22 06:18:59 +0000 |
commit | 9de560f54a62d5bdc7d836fef97bcac67cad9117 (patch) | |
tree | a3caabeca9b1048480ad455070cfd5c396fc300d /usr.sbin/relayd | |
parent | 5dffbf4dae85f195fd9edb8243c03ab9b50cd649 (diff) |
correct invalid use of sizeof
ok krw@ millert@ claudio@
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/relay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c index 89254b4d6f9..9a3e601548d 100644 --- a/usr.sbin/relayd/relay.c +++ b/usr.sbin/relayd/relay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay.c,v 1.211 2016/09/02 14:45:51 reyk Exp $ */ +/* $OpenBSD: relay.c,v 1.212 2016/09/22 06:18:58 jsg Exp $ */ /* * Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -2559,10 +2559,10 @@ relay_get_ticket_key(unsigned char keyname[16]) { if (keyname) { if (timingsafe_memcmp(keyname, - env->sc_tls_ticket_bak.tt_key_name, sizeof(keyname)) == 0) + env->sc_tls_ticket_bak.tt_key_name, 16) == 0) return &env->sc_tls_ticket_bak; if (timingsafe_memcmp(keyname, - env->sc_tls_ticket.tt_key_name, sizeof(keyname)) == 0) + env->sc_tls_ticket.tt_key_name, 16) == 0) return &env->sc_tls_ticket; return NULL; } |