r->connection->addr_text.data leak or ?

Kalazath nginx-forum at nginx.us
Mon Sep 17 12:47:33 UTC 2012


I'm writing a new module for ip stuffs and i noticed something new.

ngx_log_debug(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "ip_checker: %s",
r->connection->addr_text.data);


2012/09/17 15:31:56 [debug] 17038#0: *10 ip_checker: xxx.156.62.158
2012/09/17 15:31:57 [debug] 17038#0: *11 ip_checker: xxx.156.62.158
2012/09/17 15:32:02 [debug] 17038#0: *12 ip_checker: xxx.30.52.71
2012/09/17 15:32:03 [debug] 17038#0: *13 ip_checker: xxx.30.52.70
2012/09/17 15:32:08 [debug] 17038#0: *14 ip_checker: xxx.30.52.7158 << wtf?
2012/09/17 15:32:08 [debug] 17038#0: *15 ip_checker: xxx.30.52.7158 << wtf?
2012/09/17 15:32:09 [debug] 17038#0: *16 ip_checker: xxx.30.52.7358 << wtf?

is this leak or something?

full module code
http://pastebin.com/kcuf0pVM

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,230779,230779#msg-230779



More information about the nginx mailing list