diff options
-rw-r--r-- | plugins/check_smtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index 56be585e..77ac5ced 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c @@ -521,7 +521,8 @@ process_arguments (int argc, char **argv) localhostname = strdup(optarg); break; case 'f': /* from argument */ - from_arg = optarg; + from_arg = optarg + strspn(optarg, "<"); + from_arg = strndup(from_arg, strcspn(from_arg, ">")); smtp_use_dummycmd = 1; break; case 'A': |