Merge 5e3b08d95ff257bb9317ecb0558b77373d58d76b into 5e82e4f305dbf3760b6f6e3ba8fb70c3de30a6b9

This commit is contained in:
Ahron Greenberg (agree) 2025-01-31 16:48:23 +00:00 committed by GitHub
commit 949e714c80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1166,7 +1166,7 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to,
if (file) {
if ((ifd = open(file, O_RDONLY | O_BINARY)) < 0) {
rval = SWITCH_FALSE;
err = "Cannot open tmp file\n";
err = "Cannot open file\n";
goto end;
}
}
@ -1284,6 +1284,10 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to,
goto end;
}
}
} else {
err = "cannot open tmp file\n";
rval = SWITCH_FALSE;
goto end;
}
if (fd > -1) {