diff --git a/input/input.c b/input/input.c index 8e4f4ff033..e1e84418f8 100644 --- a/input/input.c +++ b/input/input.c @@ -316,7 +316,7 @@ static void append_bind_info(struct input_ctx *ictx, char **pmsg, msg = talloc_asprintf_append(msg, " '%s'", stripped); if (!cmd) msg = talloc_asprintf_append(msg, " (invalid)"); - if (bstr_equals0(bind->owner->section, "default")) + if (!bstr_equals0(bind->owner->section, "default")) msg = talloc_asprintf_append(msg, " in section {%.*s}", BSTR_P(bind->owner->section)); msg = talloc_asprintf_append(msg, " in %s", bind->location);