Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6873af5

Browse files
author
Thomas G. Lockhart
committed
Use MAXPGPATH to declare size of socket name storage.
1 parent8de20a3 commit6873af5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/backend/libpq/pqcomm.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.30 1997/11/21 18:10:15 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.31 1997/12/16 15:58:14 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -574,8 +574,12 @@ pq_async_notify()
574574
* RETURNS: STATUS_OK or STATUS_ERROR
575575
*/
576576

577-
staticcharsock_path[100]="";
577+
staticcharsock_path[MAXPGPATH+1]="";
578578

579+
/* do_unlink()
580+
* Shutdown routine for backend connection
581+
* If a Unix socket is used for communication, explicitly close it.
582+
*/
579583
staticvoid
580584
do_unlink()
581585
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp