Bug #1236 » log-file.c.diff
log-file.c 2014-07-02 09:56:18.045007925 +0800 | ||
---|---|---|
htp_tx_t *tx = AppLayerParserGetTx(IPPROTO_TCP, ALPROTO_HTTP, htp_state, ff->txid);
|
||
if (tx != NULL) {
|
||
HtpTxUserData *tx_ud = htp_tx_get_user_data(tx);
|
||
if (tx_ud->request_uri_normalized != NULL) {
|
||
PrintRawJsonFp(fp,
|
||
bstr_ptr(tx_ud->request_uri_normalized),
|
||
bstr_len(tx_ud->request_uri_normalized));
|
||
}
|
||
return;
|
||
if (tx_ud != NULL) {
|
||
if (tx_ud->request_uri_normalized != NULL) {
|
||
PrintRawJsonFp(fp,
|
||
bstr_ptr(tx_ud->request_uri_normalized),
|
||
bstr_len(tx_ud->request_uri_normalized));
|
||
return;
|
||
}
|
||
// return;
|
||
}
|
||
}
|
||
}
|
||