Merge pull request #16361 from ncteisen/php

Add Error Checking for Server Args in PHP
pull/16362/head
Noah Eisen 6 years ago committed by GitHub
commit 2cb3e823bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/php/ext/grpc/server.c

@ -75,7 +75,10 @@ PHP_METHOD(Server, __construct) {
if (args_array == NULL) {
server->wrapped = grpc_server_create(NULL, NULL);
} else {
php_grpc_read_args_array(args_array, &args TSRMLS_CC);
if (php_grpc_read_args_array(args_array, &args TSRMLS_CC) == FAILURE) {
efree(args.args);
return;
}
server->wrapped = grpc_server_create(&args, NULL);
efree(args.args);
}

Loading…
Cancel
Save