CID 354665: Unchecked return value in bin/named/server.c
In !6362 (merged) putstr()
return values were not being checked (we do it 212 out of 221 times elsewhere in the code):
*** CID 354665: (CHECKED_RETURN)
/bin/named/server.c: 16646 in named_server_fetchlimit()
16640 }
16641
16642 if (!first) {
16643 putstr(text, "\n");
16644 }
16645 putstr(text, "Rate limited servers, view ");
>>> CID 354665: (CHECKED_RETURN)
>>> Calling "putstr" without checking return value (as is done elsewhere 212 out of 221 times).
16646 putstr(text, view->name);
16647
16648 dns_adb_getquota(view->adb, &val, NULL, NULL, NULL, NULL);
16649 s = snprintf(tbuf, sizeof(tbuf),
16650 " (fetches-per-server %u):", val);
16651 if (s < 0 || (unsigned)s > sizeof(tbuf)) {
/bin/named/server.c: 16645 in named_server_fetchlimit()
16639 continue;
16640 }
16641
16642 if (!first) {
16643 putstr(text, "\n");
16644 }
>>> CID 354665: (CHECKED_RETURN)
>>> Calling "putstr" without checking return value (as is done elsewhere 212 out of 221 times).
16645 putstr(text, "Rate limited servers, view ");
16646 putstr(text, view->name);
16647
16648 dns_adb_getquota(view->adb, &val, NULL, NULL, NULL, NULL);
16649 s = snprintf(tbuf, sizeof(tbuf),
16650 " (fetches-per-server %u):", val);
@each If you think this does not need to be fixed, feel free to close this and mark appropriately in Coverity Scan dashboard's bind-master
project.