diff options
author | Guy Harris <gharris@sonic.net> | 2020-06-17 03:27:24 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-06-17 10:28:01 +0000 |
commit | 5336ae7d841956afcdce94eb05abfac82265f850 (patch) | |
tree | cd824cc546de5117b0a67a83d943cee7952bf3dd /wiretap/ascendtext.c | |
parent | 77d94aea243c3eca2be4749fce3145218fdf8b29 (diff) |
ascend: add a couple of comments.
Change-Id: I92a84087122e3997f7d2481f82f955987cf8f8dd
Reviewed-on: https://code.wireshark.org/review/37494
Reviewed-by: Guy Harris <gharris@sonic.net>
Diffstat (limited to 'wiretap/ascendtext.c')
-rw-r--r-- | wiretap/ascendtext.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/wiretap/ascendtext.c b/wiretap/ascendtext.c index d163c40c8b..3e253016fc 100644 --- a/wiretap/ascendtext.c +++ b/wiretap/ascendtext.c @@ -219,8 +219,8 @@ wtap_open_return_val ascend_open(wtap *wth, int *err, gchar **err_info) offset = ascend_find_next_packet(wth, err, err_info); if (offset == -1) { if (*err != 0 && *err != WTAP_ERR_SHORT_READ) - return WTAP_OPEN_ERROR; - return WTAP_OPEN_NOT_MINE; + return WTAP_OPEN_ERROR; /* read error */ + return WTAP_OPEN_NOT_MINE; /* EOF */ } /* Do a trial parse of the first packet just found to see if we might @@ -415,8 +415,10 @@ static gboolean ascend_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, return FALSE; offset = ascend_find_next_packet(wth, err, err_info); - if (offset == -1) + if (offset == -1) { + /* EOF or read error */ return FALSE; + } if (!parse_ascend(ascend, wth->fh, rec, buf, wth->snapshot_length, &ascend->next_packet_seek_start, err, err_info)) return FALSE; |