aboutsummaryrefslogtreecommitdiff
path: root/protocol.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-06-21 15:32:31 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-06-21 15:32:31 +0200
commit46305df5903270d9b63652a1ce5fae2ee861a0e4 (patch)
tree9270c8e8697afd2d6451524e8c59e992029c4641 /protocol.c
parent8cfdfdc4dec97710ae52aa8fb5efa5d162811114 (diff)
added RECV_FATAL_CALLBACK_ERROR for callback specific failured, RECV_FATAL is for internal failures
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'protocol.c')
-rw-r--r--protocol.c4
1 files changed, 1 insertions, 3 deletions
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;
}