1588. [bug] win32: TCP sockets could become blocked. [RT #10115]
-1587. [placeholder] rt10590
+1587. [bug] dns_message_settsigkey() failed to clear existing key.
+ [RT #10590]
1586. [func] "check-names" is now implemented.
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: message.c,v 1.221 2004/03/05 05:09:21 marka Exp $ */
+/* $Id: message.c,v 1.222 2004/03/10 00:47:40 marka Exp $ */
/***
*** Imports
REQUIRE(DNS_MESSAGE_VALID(msg));
REQUIRE(msg->state == DNS_SECTION_ANY);
+ if (key == NULL && msg->tsigkey != NULL) {
+ if (msg->sig_reserved != 0) {
+ dns_message_renderrelease(msg, msg->sig_reserved);
+ msg->sig_reserved = 0;
+ }
+ dns_tsigkey_detach(&msg->tsigkey);
+ }
if (key != NULL) {
REQUIRE(msg->tsigkey == NULL && msg->sig0key == NULL);
dns_tsigkey_attach(key, &msg->tsigkey);