# R-\>connection-\>addr\_text.data leak or?

**URL:** <https://www.ruby-forum.com/t/r-connection-addr-text-data-leak-or/222966>\
**Category:** NGINX\
**Created:** [September 17, 2012, 2:48pm UTC](https://www.ruby-forum.com/t/r-connection-addr-text-data-leak-or/222966 "2012-09-17T14:48:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 17, 2012, 2:48pm UTC](https://www.ruby-forum.com/t/r-connection-addr-text-data-leak-or/222966/1 "2012-09-17T14:48:18Z")

</div>

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

> **[\#include #include #include #includ - Pastebin.com](https://pastebin.com/kcuf0pVM)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Posted at Nginx Forum:

> **[r-\>connection-\>addr\_text.data leak or ?](https://forum.nginx.org/read.php?2,230779,230779#msg-230779)**
>
> 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:...

---

<div class="post-metadata">

**Author:** ![Kalazath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kalazath](https://www.ruby-forum.com/u/Kalazath)\
**Post date:** [September 17, 2012, 2:50pm UTC](https://www.ruby-forum.com/t/r-connection-addr-text-data-leak-or/222966/2 "2012-09-17T14:50:38Z")

</div>

version 1.2.3  
platform linux x86\_64

configure parameters  
./configure --prefix=/usr --add-module=…/ngx\_ip\_checker/ --with-debug

Posted at Nginx Forum:

> **[Re: r-\>connection-\>addr\_text.data leak or ?](https://forum.nginx.org/read.php?2,230779,230781#msg-230781)**
>
> 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:...

---

<div class="post-metadata">

**Author:** ![Kalazath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kalazath](https://www.ruby-forum.com/u/Kalazath)\
**Post date:** [September 17, 2012, 3:00pm UTC](https://www.ruby-forum.com/t/r-connection-addr-text-data-leak-or/222966/3 "2012-09-17T15:00:00Z")

</div>

Hello!

On Mon, Sep 17, 2012 at 8:49 PM, Kalazath [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)

you should ues “%V” in format message.

ngx\_log\_debug(NGX\_LOG\_DEBUG\_HTTP, r-\>connection-\>log, 0, “ip\_checker:  
%V”,  
&r-\>connection-\>addr\_text);

---

<div class="post-metadata">

**Author:** ![Kalazath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@Kalazath](https://www.ruby-forum.com/u/Kalazath)\
**Post date:** [September 26, 2012, 8:55am UTC](https://www.ruby-forum.com/t/r-connection-addr-text-data-leak-or/222966/4 "2012-09-26T08:55:40Z")

</div>

thank you.

Posted at Nginx Forum:

> **[Re: r-\>connection-\>addr\_text.data leak or ?](https://forum.nginx.org/read.php?2,230779,231070#msg-231070)**
>
> 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:...
