Fix header name and move return outside of ifdef.

Fixes from Mike Frysinger via Github PR#597.
This commit is contained in:
Darren Tucker
2025-10-08 11:26:52 +11:00
parent fabf4cd141
commit a18cd34e9b
2 changed files with 2 additions and 2 deletions

View File

@@ -536,7 +536,7 @@ AC_CHECK_HEADERS([ \
nlist.h \
poll.h \
stdint.h \
sys/mmap.h \
sys/mman.h \
sys/stat.h \
sys/time.h \
sys/un.h \

View File

@@ -734,10 +734,10 @@ sshkey_prekey_alloc(u_char **prekeyp, size_t len)
(void)madvise(prekey, len, MADV_DONTDUMP);
#endif
*prekeyp = prekey;
return 0;
#else
*prekeyp = calloc(1, len);
#endif /* HAVE_MMAP et al */
return 0;
}
static void