mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 22:03:50 +00:00
Merge 5e3b08d95ff257bb9317ecb0558b77373d58d76b into 5e82e4f305dbf3760b6f6e3ba8fb70c3de30a6b9
This commit is contained in:
commit
949e714c80
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user