spelling - dubbed -> duped (for duplicate)

pull/1429/head
Jason Ish 10 years ago
parent 8911b04077
commit 1f9d9256e7

@ -69,7 +69,7 @@ void DetectGidRegister (void)
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] == '\"') {
@ -80,7 +80,7 @@ static int DetectGidSetup (DetectEngineCtx *de_ctx, Signature *s, char *rawstr)
if (strlen(str) && str[strlen(str) - 1] == '\"') {
str[strlen(str) - 1] = '\"';
}
dubbed = 1;
duped = 1;
}
unsigned long gid = 0;
@ -98,12 +98,12 @@ static int DetectGidSetup (DetectEngineCtx *de_ctx, Signature *s, char *rawstr)
s->gid = (uint32_t)gid;
if (dubbed)
if (duped)
SCFree(str);
return 0;
error:
if (dubbed)
if (duped)
SCFree(str);
return -1;
}

@ -48,7 +48,7 @@ void DetectSidRegister (void)
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] == '\"') {
@ -59,7 +59,7 @@ static int DetectSidSetup (DetectEngineCtx *de_ctx, Signature *s, char *sidstr)
if (strlen(str) && str[strlen(str) - 1] == '\"') {
str[strlen(str) - 1] = '\0';
}
dubbed = 1;
duped = 1;
}
unsigned long id = 0;
@ -77,12 +77,12 @@ static int DetectSidSetup (DetectEngineCtx *de_ctx, Signature *s, char *sidstr)
s->id = (uint32_t)id;
if (dubbed)
if (duped)
SCFree(str);
return 0;
error:
if (dubbed)
if (duped)
SCFree(str);
return -1;
}

Loading…
Cancel
Save