On 01.03.2013 14:54, Tomasz Bursztyka wrote:
Hi Daniel,
target = ipt_get_target(e->entry);
- if (!strcmp(target->u.user.name, ""))
- return true;
+ if (!strcmp(target->u.user.name, IPT_STANDARD_TARGET)) {
+ struct xt_standard_target *t;
+ t = (struct xt_standard_target *)target;
+ if (t->verdict == 0)
+ return true;
+ }
return false;
}
Use g_strcmp0() ;)
Sure, forgot that one. I'll send a patch for converting the other strcmp
to g_strcmp. So either wait for v2 on this one or on the refactor patches :)
cheers,
daniel
_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman