Skip to content
Browse files

forward-after-nxdomain: allow 1 extra byte for the response if needed.

  • Loading branch information...
1 parent b59dd1a commit 0477751d4e50be9d0a8cf72845797d7a6c5e6234 @jedisct1 jedisct1 committed Oct 3, 2012
View
2 src/plugins/example-ldns-forward-after-nxdomain/example-ldns-forward-after-nxdomain.c
@@ -80,7 +80,7 @@ dcplugin_sync_post_filter(DCPlugin *dcplugin, DCPluginDNSPacket *dcp_packet)
ldns_pkt_free(query);
ldns_pkt2wire(&response_wire, response, &response_wire_len);
ldns_pkt_free(response);
- if (response_wire_len >= dcplugin_get_wire_data_max_len(dcp_packet)) {
+ if (response_wire_len > dcplugin_get_wire_data_max_len(dcp_packet)) {
free(response_wire);
return DCP_SYNC_FILTER_RESULT_ERROR;
}

0 comments on commit 0477751

Please sign in to comment.
Something went wrong with that request. Please try again.