Skip to content

Commit 5d33801

Browse files
authored
get_key_material_https: label 'kfdok' defined but not used
The label 'kfdok' is only used with O_TMPFILE, we need to use the same #ifdef around this label. Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Toomas Soome <tsoome@me.com> Closes #17894
1 parent d0294aa commit 5d33801

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/libzfs/libzfs_crypto.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,9 @@ get_key_material_https(libzfs_handle_t *hdl, const char *uri,
613613
(void) unlink(path);
614614
free(path);
615615

616+
#ifdef O_TMPFILE
616617
kfdok:
618+
#endif
617619
if ((key = fdopen(kfd, "r+")) == NULL) {
618620
ret = errno;
619621
(void) close(kfd);

0 commit comments

Comments
 (0)