Skip to content

$secure_link_hmac_expires variable not filled #19

Open
@SmaugPool

Description

@SmaugPool

During my tests, the $secure_link_hmac_expires variable value was overridden by the $secure_link_hmac_token one.

It might be due to the goto not_found when it is negative:

  228             if (expires < 0) {
  229                 goto not_found;
  230             }
  231 
  232             ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_secure_link_ctx_t));
  233             if (ctx == NULL) {
  234                 return NGX_ERROR;
  235             }
  236 
  237             ngx_http_set_ctx(r, ctx, ngx_http_hmac_secure_link_module);
  238 
  239             ctx->expires.len = value.len;
  240             ctx->expires.data = value.data;

Or to the initialization issue fixed in this fork else:

area9innovation@6ac01a2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions