diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_dns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index c0ea2982..19649f50 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -132,7 +132,11 @@ main (int argc, char **argv) | |||
132 | printf ("%s\n", input_buffer); | 132 | printf ("%s\n", input_buffer); |
133 | 133 | ||
134 | if ((temp_buffer = index (input_buffer, ':'))) { | 134 | if ((temp_buffer = index (input_buffer, ':'))) { |
135 | address = strscpy (address, temp_buffer + 2); | 135 | temp_buffer++; |
136 | /* Strip leading spaces */ | ||
137 | for (; *temp_buffer != '\0' && *temp_buffer == ' '; temp_buffer++) | ||
138 | /* NOOP */; | ||
139 | address = strscpy (address, temp_buffer); | ||
136 | strip (address); | 140 | strip (address); |
137 | result = STATE_OK; | 141 | result = STATE_OK; |
138 | } | 142 | } |