Skip to content

Commit 9bbc143

Browse files
committed
fix spacing
1 parent bb3f8ff commit 9bbc143

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pam.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)