Bug report: ArgusGetServerSocket

Richard Rothwell via Argus-info argus-info at lists.andrew.cmu.edu
Thu Jun 30 21:17:37 EDT 2016


Hi Carter,

Going through the code. Stumbled on this line 1034 in argus_client.c


   switch (input->type) {
      case ARGUS_DATA_SOURCE:
      case ARGUS_V2_DATA_SOURCE: {

if ((input->type == ARGUS_CISCO_DATA_SOURCE) || (input->mode == ARGUS_DATAGRAM_SOURCE)) {

Seems to me the test for ARGUS_CISCO_DATA_SOURCE won’t ever be true if the case statement has already determined type to be something else.


Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20160701/82f054bf/attachment.html>


More information about the argus mailing list