Skip to content

Commit

Permalink
Fixes #356
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jul 10, 2013
1 parent b9ee50b commit 3d70187
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/valuepair.c
Expand Up @@ -1365,7 +1365,12 @@ void module_failure_msg(REQUEST *request, char const *fmt, ...)
}

p = talloc_vasprintf(vp, fmt, ap);
pairsprintf(vp, "%s: %s", request->module, p);

if (request->module && *request->module) {
pairsprintf(vp, "%s: %s", request->module, p);
} else {
pairsprintf(vp, "%s", p);
}
talloc_free(p);
pairadd(&request->packet->vps, vp);
}
Expand Down

0 comments on commit 3d70187

Please sign in to comment.