diff --git a/bin/named/update.c b/bin/named/update.c index e7ae384676..afa1aa5c43 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -97,7 +97,7 @@ #define FAIL(code) \ do { \ result = (code); \ - if (code != ISC_R_SUCCESS) goto failure; \ + if (result != ISC_R_SUCCESS) goto failure; \ } while (0) /* @@ -110,7 +110,7 @@ result = (code); \ isc_log_write(UPDATE_PROTOCOL_LOGARGS, \ "dynamic update failed: %s (%s)", \ - msg, isc_result_totext(code)); \ + msg, isc_result_totext(result)); \ if (result != ISC_R_SUCCESS) goto failure; \ } while (0) @@ -124,7 +124,7 @@ result = (code); \ isc_log_write(UPDATE_PROTOCOL_LOGARGS, \ "dynamic update error: %s: %s", \ - msg, isc_result_totext(code)); \ + msg, isc_result_totext(result)); \ if (result != ISC_R_SUCCESS) goto failure; \ } while (0)