summary refs log tree commit diff
path: root/resolv/ns_ttl.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-12-16 16:53:05 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-12-16 16:55:23 +0530
commita0d424ef9d7fc34f7d1a516f38c8efb1e8692a03 (patch)
treee30a4786facc2274751209651c05de9b043f082f /resolv/ns_ttl.c
parent8b460906cdb8ef1501fa5dcff54206b201e527d5 (diff)
downloadglibc-a0d424ef9d7fc34f7d1a516f38c8efb1e8692a03.tar.gz
glibc-a0d424ef9d7fc34f7d1a516f38c8efb1e8692a03.tar.xz
glibc-a0d424ef9d7fc34f7d1a516f38c8efb1e8692a03.zip
Fix 'array subscript is above array bounds' warning in res_send.c
I see this warning in my build on F21 x86_64, which seems to be due to
a weak check for array bounds.  Fixed by making the bounds check
stronger.

This is not an actual bug since nscount is never set to anything
greater than MAXNS.  The compiler however does not know this, so we
need the stronger bounds check to quieten the compiler.
Diffstat (limited to 'resolv/ns_ttl.c')
0 files changed, 0 insertions, 0 deletions