Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 0477751d4e50be9d0a8cf72845797d7a6c5e6234 1 parent b59dd1a
Frank Denis jedisct1 authored
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)
80 80 ldns_pkt_free(query);
81 81 ldns_pkt2wire(&response_wire, response, &response_wire_len);
82 82 ldns_pkt_free(response);
83   - if (response_wire_len >= dcplugin_get_wire_data_max_len(dcp_packet)) {
  83 + if (response_wire_len > dcplugin_get_wire_data_max_len(dcp_packet)) {
84 84 free(response_wire);
85 85 return DCP_SYNC_FILTER_RESULT_ERROR;
86 86 }

0 comments on commit 0477751

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