summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbta-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/smbta-util.c b/source3/utils/smbta-util.c
index 13686ae7a0..8ce8fa5672 100644
--- a/source3/utils/smbta-util.c
+++ b/source3/utils/smbta-util.c
@@ -56,7 +56,7 @@ static void create_keyfile(char *filename, char *key)
keyfile = fopen(filename, "w");
if (keyfile == NULL) {
printf("error creating the keyfile!\n");
- exit(0);
+ exit(1);
}
fprintf(keyfile, "%s", key);
fclose(keyfile);
@@ -75,13 +75,13 @@ static char *load_key_from_file(char *filename)
keyfile = fopen(filename, "r");
if (keyfile == NULL) {
printf("Error opening the keyfile!\n");
- exit(0);
+ exit(1);
}
l = fscanf(keyfile, "%s", key);
if (strlen(key) != 16) {
printf("Key file in wrong format\n");
fclose(keyfile);
- exit(0);
+ exit(1);
}
return key;
}