Skip to content

Commit a1dd4ba

Browse files
committed
- remove unneeded shadowed var.
- fix wrong cookie options offset calculation, using separator offset instead.
1 parent 7477efc commit a1dd4ba

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ext/soap/php_http.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,6 @@ int make_http_soap_request(zval *this_ptr,
10101010
char *sempos = strstr(cookie, ";");
10111011
if (eqpos != NULL && (sempos == NULL || sempos > eqpos)) {
10121012
smart_str name = {0};
1013-
int cookie_len;
10141013
zval zcookie;
10151014

10161015
if (sempos != NULL) {
@@ -1026,7 +1025,7 @@ int make_http_soap_request(zval *this_ptr,
10261025
add_index_stringl(&zcookie, 0, eqpos + 1, cookie_len);
10271026

10281027
if (sempos != NULL) {
1029-
char *options = cookie + cookie_len+1;
1028+
char *options = sempos + 1;
10301029
while (*options) {
10311030
while (*options == ' ') {options++;}
10321031
sempos = strstr(options, ";");

0 commit comments

Comments
 (0)