diff options
Diffstat (limited to 'auth-options.c')
-rw-r--r-- | auth-options.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/auth-options.c b/auth-options.c index b63782de7..696ba6ac6 100644 --- a/auth-options.c +++ b/auth-options.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth-options.c,v 1.91 2020/02/26 13:40:09 jsg Exp $ */ | 1 | /* $OpenBSD: auth-options.c,v 1.92 2020/03/06 18:15:38 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Damien Miller <djm@mindrot.org> | 3 | * Copyright (c) 2018 Damien Miller <djm@mindrot.org> |
4 | * | 4 | * |
@@ -734,9 +734,11 @@ deserialise_array(struct sshbuf *m, char ***ap, size_t *np) | |||
734 | *np = n; | 734 | *np = n; |
735 | n = 0; | 735 | n = 0; |
736 | out: | 736 | out: |
737 | for (i = 0; i < n; i++) | 737 | if (a != NULL) { |
738 | free(a[i]); | 738 | for (i = 0; i < n; i++) |
739 | free(a); | 739 | free(a[i]); |
740 | free(a); | ||
741 | } | ||
740 | sshbuf_free(b); | 742 | sshbuf_free(b); |
741 | return r; | 743 | return r; |
742 | } | 744 | } |