ciscodump(.c): Fix Null pointer passed to 1st parameter expecting 'nonnull'
This commit is contained in:
parent
5766002231
commit
f908bfa821
|
@ -1491,7 +1491,7 @@ static int check_ios_version(ssh_channel channel, CISCO_SW_TYPE *sw_type)
|
|||
}
|
||||
}
|
||||
|
||||
if (*sw_type != CISCO_UNKNOWN) {
|
||||
if (*sw_type != CISCO_UNKNOWN && cur) {
|
||||
cur = g_strstr_len(cur, 255-strlen(cur), msg_version);
|
||||
if (cur) {
|
||||
cur += strlen(msg_version);
|
||||
|
|
Loading…
Reference in New Issue