<p>check_dig was casesensitive if an expected answer is given.<br>
  Switching strstr with strcasestr fixes this issue</p>

<p>While testing i noticed a bug where expected is not an exact match<br>
  New issue for that is opened <a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1385" class="issue-link" title="check_dig: expected address is not an exact match">#1385</a></p>

<p>This fix closes <a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1233" class="issue-link" title="check_dig is case sensitive">#1233</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1386'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1386</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>check_dig: expected answer is now incasesensitive</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1386/files#diff-0">plugins/check_dig.c</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1386.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1386.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1386.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1386.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1386">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2XluVrw4yoeLyDHl4du21oOUuUB0ks5o72NpgaJpZM4GPS-M.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1386"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>