core: dns cache - avoid bitshifting with more than the size
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 07:05:16 +0000 (09:05 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 07:05:16 +0000 (09:05 +0200)
commit107dc767391902d5d3b000deecafb804c1c68c1b
tree7d3a5b65ca070d1e79fa870ba0571f1a4a5c2d9f
parentf3c68a5013b5a33937dbf735453da29df75ae09e
core: dns cache - avoid bitshifting with more than the size

- avoid undefined behaviour as per C specs
src/core/dns_cache.c