File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -261,11 +261,10 @@ PHP_FUNCTION(pam_auth) {
261261 }
262262 hash_key = zend_string_init ("_SERVER" , sizeof ( "_SERVER" ), 0 );
263263 if (zend_hash_exists (& EG (symbol_table ), hash_key )) {
264- if ((server = zend_hash_str_find (& EG (symbol_table ), "_SERVER" , sizeof ("_SERVER" )- 1 )) != NULL && Z_TYPE_P (server ) == IS_ARRAY
265- ) {
266- if ((remote_addr = zend_hash_str_find (Z_ARRVAL_P (server ), "REMOTE_ADDR" , sizeof ("REMOTE_ADDR" )- 1 )) != NULL && Z_TYPE_P (remote_addr ) == IS_STRING ) {
267- pam_set_item (pamh , PAM_RHOST , Z_STRVAL_P (remote_addr ));
268- }
264+ if ((server = zend_hash_str_find (& EG (symbol_table ), "_SERVER" , sizeof ("_SERVER" )- 1 )) != NULL && Z_TYPE_P (server ) == IS_ARRAY ) {
265+ if ((remote_addr = zend_hash_str_find (Z_ARRVAL_P (server ), "REMOTE_ADDR" , sizeof ("REMOTE_ADDR" )- 1 )) != NULL && Z_TYPE_P (remote_addr ) == IS_STRING ) {
266+ pam_set_item (pamh , PAM_RHOST , Z_STRVAL_P (remote_addr ));
267+ }
269268 }
270269 }
271270
You can’t perform that action at this time.
0 commit comments