]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: fix sizeof usage in mini-record-timing
authorDaiki Ueno <ueno@gnu.org>
Sun, 30 Aug 2020 12:40:13 +0000 (14:40 +0200)
committerDaiki Ueno <ueno@gnu.org>
Sun, 30 Aug 2020 12:40:13 +0000 (14:40 +0200)
Signed-off-by: Daiki Ueno <ueno@gnu.org>
tests/suite/mini-record-timing.c

index 354f733d63ff2db7fedc0d1205be5b777ea5e89b..093f3d5d3271bc049e5fed2d158c80b9822b45cd 100644 (file)
@@ -232,7 +232,7 @@ client(int fd, const char *prio, unsigned int text_size,
 
  restart:
        do {
-               ret = gnutls_record_send(session, text, sizeof(text));
+               ret = gnutls_record_send(session, text, text_size);
        } while (ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_INTERRUPTED);
        /* measure peer's processing time */