Skip to content

Commit 5336ae7

Browse files
committed
ascend: add a couple of comments.
Change-Id: I92a84087122e3997f7d2481f82f955987cf8f8dd Reviewed-on: https://code.wireshark.org/review/37494 Reviewed-by: Guy Harris <[email protected]>
1 parent 77d94ae commit 5336ae7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

wiretap/ascendtext.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ wtap_open_return_val ascend_open(wtap *wth, int *err, gchar **err_info)
219219
offset = ascend_find_next_packet(wth, err, err_info);
220220
if (offset == -1) {
221221
if (*err != 0 && *err != WTAP_ERR_SHORT_READ)
222-
return WTAP_OPEN_ERROR;
223-
return WTAP_OPEN_NOT_MINE;
222+
return WTAP_OPEN_ERROR; /* read error */
223+
return WTAP_OPEN_NOT_MINE; /* EOF */
224224
}
225225

226226
/* 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,
415415
return FALSE;
416416

417417
offset = ascend_find_next_packet(wth, err, err_info);
418-
if (offset == -1)
418+
if (offset == -1) {
419+
/* EOF or read error */
419420
return FALSE;
421+
}
420422
if (!parse_ascend(ascend, wth->fh, rec, buf, wth->snapshot_length,
421423
&ascend->next_packet_seek_start, err, err_info))
422424
return FALSE;

0 commit comments

Comments
 (0)