static int DetectGidSetup (DetectEngineCtx *de_ctx, Signature *s, char *rawstr)
{
char *str = rawstr;
- char dubbed = 0;
+ char duped = 0;
/* Strip leading and trailing "s. */
if (rawstr[0] == '\"') {
if (strlen(str) && str[strlen(str) - 1] == '\"') {
str[strlen(str) - 1] = '\"';
}
- dubbed = 1;
+ duped = 1;
}
unsigned long gid = 0;
s->gid = (uint32_t)gid;
- if (dubbed)
+ if (duped)
SCFree(str);
return 0;
error:
- if (dubbed)
+ if (duped)
SCFree(str);
return -1;
}
static int DetectSidSetup (DetectEngineCtx *de_ctx, Signature *s, char *sidstr)
{
char *str = sidstr;
- char dubbed = 0;
+ char duped = 0;
/* Strip leading and trailing "s. */
if (sidstr[0] == '\"') {
if (strlen(str) && str[strlen(str) - 1] == '\"') {
str[strlen(str) - 1] = '\0';
}
- dubbed = 1;
+ duped = 1;
}
unsigned long id = 0;
s->id = (uint32_t)id;
- if (dubbed)
+ if (duped)
SCFree(str);
return 0;
error:
- if (dubbed)
+ if (duped)
SCFree(str);
return -1;
}