Skip to content
Snippets Groups Projects
Commit fcaeb38e authored by Mark D. Roth's avatar Mark D. Roth
Browse files

Fix crash identified by fuzzer tests.

parent 6ceb0cf7
Branches
Tags
No related merge requests found
...@@ -282,6 +282,7 @@ grpc_uri *grpc_uri_parse(const char *uri_text, int suppress_errors) { ...@@ -282,6 +282,7 @@ grpc_uri *grpc_uri_parse(const char *uri_text, int suppress_errors) {
} }
const char *grpc_uri_get_query_arg(const grpc_uri *uri, const char *key) { const char *grpc_uri_get_query_arg(const grpc_uri *uri, const char *key) {
if (uri == NULL) return NULL;
GPR_ASSERT(key != NULL); GPR_ASSERT(key != NULL);
if (key[0] == '\0') return NULL; if (key[0] == '\0') return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment