]> granicus.if.org Git - php/commitdiff
fix: prevent possible crash
authorDmitry Stogov <dmitry@php.net>
Thu, 19 Feb 2004 16:45:25 +0000 (16:45 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 19 Feb 2004 16:45:25 +0000 (16:45 +0000)
ext/soap/soap.c

index 677ff9c9b1dcefad5d26c8d8ff34152201388e9a..d3e5ddd5f058d0e8bd18afba7dd5f9dfdb20464f 100644 (file)
@@ -3172,6 +3172,10 @@ static sdlParamPtr get_param(sdlFunctionPtr function, char *param_name, int inde
        } else {
                ht = function->responseParameters;
        }
+       
+       if (ht == NULL) {
+         return NULL;
+       }
 
        if (param_name != NULL) {
                if (zend_hash_find(ht, param_name, strlen(param_name), (void **)&tmp) != FAILURE) {