forked from osmocom/wireshark
dtls: use ws_strtoi function.
Change-Id: I4feacfa8e4739faf555c05e3c4823ad8487a994c Reviewed-on: https://code.wireshark.org/review/18392 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
6b25798014
commit
2e962d368a
|
@ -57,6 +57,7 @@
|
|||
#include <epan/sctpppids.h>
|
||||
#include <epan/exported_pdu.h>
|
||||
#include <wsutil/str_util.h>
|
||||
#include <wsutil/strtoi.h>
|
||||
#include "packet-ssl-utils.h"
|
||||
#include "packet-dtls.h"
|
||||
|
||||
|
@ -249,8 +250,8 @@ dtls_parse_uat(void)
|
|||
{
|
||||
ssldecrypt_assoc_t *d = &(dtlskeylist_uats[i]);
|
||||
ssl_parse_key_list(d, dtls_key_hash, "dtls.port", dtls_handle, FALSE);
|
||||
if (key_list_stack)
|
||||
wmem_stack_push(key_list_stack, GUINT_TO_POINTER(atoi(d->port)));
|
||||
if (key_list_stack && ws_strtou32(d->port, NULL, &port))
|
||||
wmem_stack_push(key_list_stack, GUINT_TO_POINTER(port));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue