Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
4c1bd4e7
Commit
4c1bd4e7
authored
Apr 10, 2015
by
Benjamin Dürholt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent segfault
parent
344264da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
rfbssl_gnutls.c
libvncserver/rfbssl_gnutls.c
+2
-0
tight.c
libvncserver/tight.c
+5
-1
No files found.
libvncserver/rfbssl_gnutls.c
View file @
4c1bd4e7
...
...
@@ -109,6 +109,8 @@ struct rfbssl_ctx *rfbssl_init_global(char *key, char *cert)
gnutls_global_set_log_function
(
rfbssl_log_func
);
gnutls_global_set_log_level
(
1
);
gnutls_certificate_set_dh_params
(
ctx
->
x509_cred
,
ctx
->
dh_params
);
//newly allocated memory should be initialized, at least where it is important
ctx
->
peekstart
=
ctx
->
peeklen
=
0
;
return
ctx
;
}
...
...
libvncserver/tight.c
View file @
4c1bd4e7
...
...
@@ -163,7 +163,11 @@ void rfbTightCleanup (rfbScreenInfoPtr screen)
tightAfterBufSize
=
0
;
tightAfterBuf
=
NULL
;
}
if
(
j
)
tjDestroy
(
j
);
if
(
j
)
{
tjDestroy
(
j
);
//Set freed resource handle to 0!
j
=
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment