diff options
-rw-r--r-- | source3/utils/smbta-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbta-util.c b/source3/utils/smbta-util.c index 6dfa0d524b..4c2accd130 100644 --- a/source3/utils/smbta-util.c +++ b/source3/utils/smbta-util.c @@ -78,7 +78,7 @@ static void load_key_from_file(char *filename, char *key) exit(1); } l = fscanf(keyfile, "%s", key); - if (strlen(key) != 16) { + if (l != 1 || strlen(key) != 16) { printf("Key file in wrong format\n"); fclose(keyfile); exit(1); |