Changeset 863edf1 in code


Ignore:
Timestamp:
May 24, 2015, 9:25:34 PM (10 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
a56efea
Parents:
940d2b5
git-author:
Mike Belopuhov <mike@…> (04/25/15 12:38:00)
git-committer:
Mike Belopuhov <mike@…> (05/24/15 21:25:34)
Message:

Zero out the input buffer after icb_input and on drops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icbd.c

    r940d2b5 r863edf1  
    398398                if (icb_input(is))
    399399                        return;
     400                /* cleanup the input buffer */
     401                memset(is->buffer, 0, ICB_MSGSIZE);
    400402                is->rlen = is->length = 0;
    401403        }
     
    427429        } else
    428430                icb_remove(is, NULL);
     431
     432        /* cleanup the input buffer */
     433        memset(is->buffer, 0, ICB_MSGSIZE);
     434        is->rlen = is->length = 0;
     435
    429436        (void)close(EVBUFFER_FD(is->bev));
    430437        bufferevent_free(is->bev);
Note: See TracChangeset for help on using the changeset viewer.