commit fe2262ad3dcb66d88a03596bc884bd0d7e7af6e4 from: Omar Polo date: Wed May 12 12:47:27 2021 UTC fix known_host corruption when save new cert the wrong size was allocated commit - c82b3fd622db1e45a094f1024ea1d37c4de89fdf commit + fe2262ad3dcb66d88a03596bc884bd0d7e7af6e4 blob - 01b9fe34f05109df256fc7d27e1a1b48d74f00bb blob + 90a6debb5669b160daddb376844cec7410a01f0e --- telescope.c +++ telescope.c @@ -172,7 +172,7 @@ handle_maybe_save_new_cert(int accept, unsigned int ta if (!accept) goto end; - if ((e = calloc(1, sizeof(e))) == NULL) + if ((e = calloc(1, sizeof(*e))) == NULL) die(); strlcpy(e->domain, tab->uri.host, sizeof(e->domain));