From 46305df5903270d9b63652a1ce5fae2ee861a0e4 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 21 Jun 2020 15:32:31 +0200 Subject: added RECV_FATAL_CALLBACK_ERROR for callback specific failured, RECV_FATAL is for internal failures Signed-off-by: Toni Uhlig --- protocol.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'protocol.c') diff --git a/protocol.c b/protocol.c index 940e0cd..ba3e2ed 100644 --- a/protocol.c +++ b/protocol.c @@ -73,9 +73,7 @@ static enum recv_return parse_protocol_timestamp(char const protocol_timestamp[P char timestamp_sz[PROTOCOL_TIME_STRLEN + 1]; strncpy(timestamp_sz, protocol_timestamp, sizeof(timestamp_sz) - 1); timestamp_sz[PROTOCOL_TIME_STRLEN] = '\0'; - if (strptime(timestamp_sz, "%a, %d %b %Y %T %z", dest) == NULL) { - return RECV_FATAL; - } + strptime(timestamp_sz, "%a, %d %b %Y %T %z", dest); return RECV_SUCCESS; } -- cgit v1.2.3