Skip to content

Commit

Permalink
fix(enums): return errno code instead of -1
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Aug 29, 2020
1 parent e9474e0 commit 637e8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/cpp/enums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int srt_sockopt_j2n(JNIEnv *env, jobject sockOpt) {
return -EFAULT;
}

int srt_sockopt = -1;
int srt_sockopt = -EINVAL;
if (strcmp(srt_sockopt_field, "MSS") == 0) {
srt_sockopt = SRTO_MSS;
} else if (strcmp(srt_sockopt_field, "SNDSYN") == 0) {
Expand Down

0 comments on commit 637e8a7

Please sign in to comment.