Print the offending SPANS message only if printing is enabled.

This commit is contained in:
Hartmut Brandt 2003-07-25 12:32:08 +00:00
parent 434252892a
commit a327640a9e

View File

@ -686,7 +686,8 @@ spanscls_cpcs_data(tok, m)
if (bcmp((char *)&chp->ch_proto, (char *)spanscls_bridged,
sizeof(spanscls_bridged))) {
log(LOG_ERR, "spanscls_input: bad format\n");
spanscls_pdu_print(clp, m, "input error");
if (spanscls_print)
spanscls_pdu_print(clp, m, "input error");
}
KB_FREEALL(m);