Bug 824097 - Fix uninitialized memory read in nr_stun_server_ctx. r=jesup
authorEKR <ekr@rtfm.com>
Fri, 21 Dec 2012 15:14:06 -0800
changeset 116842 495e435f86d91ec588bc1c77bc4739779dd6cf9a
parent 116841 f870bc01fbdfc858274ed8ce6e8b5bff54e46291
child 116843 972c3e4a494f07a127bd25f90967025baaff8793
push id24072
push userMs2ger@gmail.com
push dateSat, 22 Dec 2012 13:18:22 +0000
treeherdermozilla-central@ea373e534245 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs824097
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 824097 - Fix uninitialized memory read in nr_stun_server_ctx. r=jesup
media/mtransport/third_party/nICEr/src/stun/stun_server_ctx.c
--- a/media/mtransport/third_party/nICEr/src/stun/stun_server_ctx.c
+++ b/media/mtransport/third_party/nICEr/src/stun/stun_server_ctx.c
@@ -188,17 +188,17 @@ int nr_stun_server_process_request_auth_
   }
 
 int nr_stun_server_process_request(nr_stun_server_ctx *ctx, nr_socket *sock, char *msg, int len, nr_transport_addr *peer_addr, int auth_rule)
   {
     int r,_status;
     char string[256];
     nr_stun_message *req = 0;
     nr_stun_message *res = 0;
-    nr_stun_server_client *clnt;
+    nr_stun_server_client *clnt = 0;
     nr_stun_server_request info;
     int error;
 
     r_log(NR_LOG_STUN,LOG_DEBUG,"STUN-SERVER(%s): Received(my_addr=%s,peer_addr=%s)",ctx->label,ctx->my_addr.as_string,peer_addr->as_string);
    
     snprintf(string, sizeof(string)-1, "STUN-SERVER(%s): Received ", ctx->label);
     r_dump(NR_LOG_STUN, LOG_DEBUG, string, (char*)msg, len);